Commit Graph

180 Commits

Author SHA1 Message Date
Mazen El-Kashef
135e64f9e2 Remove entitlement allow-jit and Downgrade CI to MacOS 10.13 2020-01-24 05:10:22 -05:00
Mazen El-Kashef
2073e2e917 Pass notarization credentials to the build script 2020-01-24 03:30:45 -05:00
Mazen El-Kashef
9616bb2eb0 Upgrade macos image to Majove to support notarization 2020-01-24 01:54:09 -05:00
dependabot[bot]
0150a90209 Bump extend from 3.0.1 to 3.0.2 in /script/vsts
Bumps [extend](https://github.com/justmoon/node-extend) from 3.0.1 to 3.0.2.
- [Release notes](https://github.com/justmoon/node-extend/releases)
- [Changelog](https://github.com/justmoon/node-extend/blob/master/CHANGELOG.md)
- [Commits](https://github.com/justmoon/node-extend/compare/v3.0.1...v3.0.2)

Signed-off-by: dependabot[bot] <support@github.com>
2019-08-15 18:18:32 +00:00
Antonio Scandurra
dc42506b53 Re-enable CI for Windows and macOS on Azure pipelines
Co-Authored-By: Jason Rudolph <jason@jasonrudolph.com>
2019-07-24 15:25:47 +02:00
Antonio Scandurra
e938c0136b Revert "WIP: Temporarily upload artifacts on builds triggered by pull requests"
This reverts commit 10fc3f254e.

Co-Authored-By: Jason Rudolph <jason@jasonrudolph.com>
2019-07-24 15:25:29 +02:00
Antonio Scandurra
383fda8869 Install ICU dev tools to fix artifact caching tool 2019-07-24 15:02:38 +02:00
Antonio Scandurra
10fc3f254e WIP: Temporarily upload artifacts on builds triggered by pull requests 2019-07-24 12:55:41 +02:00
Antonio Scandurra
445548e68d Downgrade Ubuntu to 14.04 2019-07-24 12:48:24 +02:00
Rafael Oleza
535c0311d4 Calculate correctly the nupkg filenames when uploading artifacts 2019-07-17 15:33:13 +02:00
Antonio Scandurra
ed75930d21 Upgrade npm on Azure Pipelines when running macOS tests 2019-06-20 18:17:50 +02:00
Antonio Scandurra
73274fb70a Run script/bootstrap for pull requests originated from forks 2019-06-20 14:20:31 +02:00
Rafael Oleza
a6c21292be Publish nightly releases to atom repo on packagecloud.io 2019-06-20 11:13:19 +02:00
Rafael Oleza
136ec1474e Fix generation of release notes for nightly builds 2019-06-19 09:16:19 +02:00
Rafael Oleza
c67794cf96 Improve logic to generate nightly release notes 2019-06-17 23:35:41 +02:00
Rafael Oleza
8d9a7aa978 Add yml files to the node_modules cache key
This is to prevent reusing the node_modules folder when there are
changes in the build system, which can affect the npm install step (like
upgrading the Node.js version).
2019-06-12 15:24:23 +02:00
Rafael Oleza
8e836b026f Update the nodejs version used on CI systems
It now matches the version of Node.js that Electron v3.1 is using.
2019-06-12 15:24:23 +02:00
Rafael Oleza
1d13427124 Auto-format yaml files 2019-06-12 12:56:22 +02:00
Antonio Scandurra
6a88fa4185 Don't symlink compile-cache folder in AtomWindow tests
In these tests, we create a temporary `ATOM_HOME` to avoid cluttering 
the user's real `~/.atom` folder.

Adding a symlink to the real `compile-cache` was introduced to speed up 
main process tests, so that the transpilation cache could be reused. 

Unfortunately, when the real `~/.atom` folder did not exist (such as on 
a pristine environment on CI), it would confuse Atom, which would think 
that it didn't need to re-create a `compile-cache` folder again, but 
wouldn't be able to write to it because the symlink pointed to a 
non-existant directory.

Main process tests were overhauled and made faster recently, so we can 
safely remove this performance optimization.
2019-06-06 17:11:01 +02:00
Antonio Scandurra
587a4dd72d Run main process tests during build step
For some reason, one main process test fails when run in a different 
container than the one in which Atom was built. These tests are pretty 
quick, so their impact on parallelism should be negligible.
2019-06-05 14:11:11 +02:00
Antonio Scandurra
791a583860 Run package tests in parallel 2019-06-05 10:05:19 +02:00
Antonio Scandurra
0d00538da3 Run core and package tests in parallel for macOS on Azure Pipelines 2019-06-04 18:50:26 +02:00
Antonio Scandurra
8231a16d77 Add package.json as a key to invalidate the cache on Electron upgrades 2019-06-04 13:08:58 +02:00
Antonio Scandurra
3a6750b3f9 Run bootstrap only once on Azure Pipelines for Windows 2019-06-04 11:10:05 +02:00
Antonio Scandurra
3be4889b77 Cache node_modules on Azure Pipelines based on package-lock.json
Co-Authored-By: Nathan Sobo <nathan@github.com>
Co-Authored-By: Rafael Oleza <rafeca@github.com>
2019-06-04 09:38:49 +02:00
Rafael Oleza
7f3f040628 Reformat all JS files using prettier 2019-05-31 18:33:56 +02:00
Jason Rudolph
0ab0e6595d Merge pull request #19346 from atom/dw-fix-draft-automation
Re-enable draft release automation for builds on release branches
2019-05-21 14:27:38 -04:00
Rafael Oleza
b60f1b116b Small nit in comment 2019-05-20 10:16:13 -07:00
David Wilson
d3c556bdba Be more explicit about Nightly tag target 2019-05-17 08:04:07 -07:00
Nathan Sobo
770b8fdcf8 Revert "Merge pull request #19244 from atom/ns/notify"
This reverts commit b2ecabd527, reversing
changes made to c3bf95194a.
2019-05-17 04:10:17 -06:00
David Wilson
9d30731972 Switch to atomeditor/atom-docker-ci image for Linux builds 2019-05-16 13:28:32 -07:00
David Wilson
f3118e7f90 Re-enable draft release creation and add AutoDraftRelease switch 2019-05-15 08:46:45 -07:00
David Wilson
8be222bd96 Set the target_commitish of the draft release 2019-05-15 08:35:14 -07:00
Nathan Sobo
9a176f648f Test everything on Windows 2019-05-10 14:23:08 -06:00
Nathan Sobo
b1b1b15d49 Normalize %TEMP% to a long path on Windows CI
This avoids problems with assertions that involve paths inside the temp 
folder.
2019-05-10 13:46:57 -06:00
Jason Rudolph
f3f32c45cc Merge pull request #19176 from atom/respect-package-lock-on-ci
Teach CI to use versions specified in package-lock.json
2019-04-19 17:13:38 -04:00
Nathan Sobo
406e033323 Merge pull request #19183 from atom/ns/upload-windows-crashes-on-release-branches
On Azure DevOps, upload Windows crash dumps to S3 on release branches
2019-04-19 13:52:47 -06:00
Nathan Sobo
4bc43eb358 On Azure DevOps, upload Windows crash dumps to S3 on release branches
On release branches, we can't upload crash dumps because they will leak
secret environment variables. So instead we will upload them to our S3
bucket with 'private' ACL. They can then be manually retrieved via the
AWS CLI with our private credentials.
2019-04-18 17:04:49 -06:00
Nathan Sobo
7ef8f06cd2 Only upload Windows crash reports if the S3 key environment var is null
This seems like a more robust test than the isRelease variable I was
testing previously. Our goal is to not leak secrets such as the S3 key,
so this is a more direct test of that.
2019-04-18 15:15:31 -06:00
Nathan Sobo
b03d49973e On Azure DevOps, publish crash reports on non-release Windows branches
Since we don't expose sensitive information on these branches, we can
use the regular artifact publishing mechanism
2019-04-18 10:49:14 -06:00
Jason Rudolph
fce5a8974f Fix issue upgrading npm & use upgraded version 2019-04-18 10:59:33 -04:00
Jason Rudolph
cb3f24fc5c Use env var to specify path to npm binary 2019-04-18 09:53:40 -04:00
Jason Rudolph
680e48485a Set PATH so that Azure DevOps macOS builds use correct npm
Before we run script/bootstrap on the macOS build, the preceding build
step installs npm 6.2.0 as the global npm version. It installs npm at
`/usr/local/bin/npm`. However, a _different_ version of npm appears
earlier in the PATH. The PATH looks like this:

```
/Users/vsts/hostedtoolcache/node/8.9.3/x64/bin:
/usr/local/lib/ruby/gems/2.6.0/bin:
/usr/local/opt/ruby/bin:
/usr/local/opt/curl/bin:
/usr/local/bin:
/usr/local/sbin:
/Users/vsts/bin:
/Users/vsts/.yarn/bin:
/usr/local/go/bin:
/Users/vsts/Library/Android/sdk/tools:
/Users/vsts/Library/Android/sdk/platform-tools:
/Users/vsts/Library/Android/sdk/ndk-bundle:
/Library/Frameworks/Mono.framework/Versions/Current/Commands:
/usr/bin:
/bin:
/usr/sbin:
/sbin:
/Users/vsts/.azcopy
```

There's an npm executable at
/Users/vsts/hostedtoolcache/node/8.9.3/x64/bin/npm.

To get the build to use the global version of npm, this commit puts
/usr/local/bin at the beginning of the PATH.
2019-04-17 17:27:32 -04:00
Jason Rudolph
ce94241bde Configure Azure DevOps bootstrapping step to run with CI env vars 2019-04-17 12:23:05 -04:00
David Wilson
9ef6477b92 Temporarily disable draft release creation on release branches 2019-04-05 15:01:28 -07:00
Jason Rudolph
9e03795c20 Provide the BUILD_ARCH env var for bootstrapping Windows env on VSTS
`script/vsts/windows-run.js` checks the BUILD_ARCH env var, so let's 
make sure it's populated.
2019-04-03 13:11:24 -04:00
Jason Rudolph
166658f588 Add back bootstrapping to script/build on Windows
Hopefully this will resolve the error we're seeing here:

https://github.visualstudio.com/Atom/_build/results?buildId=37021&view=logs&jobId=97a617bf-bcbd-5dfa-bba2-cfba2747b693&taskId=1e1369e9-1c56-59b0-830c-f1606a680c8a&lineStart=13&lineEnd=19&colStart=1&colEnd=1

🤞
2019-04-02 19:43:45 -04:00
Jason Rudolph
5f52a8e0b0 Lint earlier in the build process 2019-04-02 19:43:44 -04:00
Rafael Oleza
874016b785 Add GITHUB_TOKEN env var to the npm install step (take 2)
This will prevent issues when installing the `vscode-ripgrep` package
2019-03-20 14:41:22 +01:00
David Wilson
ccc7233e51 Add GITHUB_TOKEN env var to the npm install step
This will prevent issues when installing the `vscode-ripgrep` package
2019-03-19 11:50:26 -07:00