forked from yarnpkg/yarn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
59 lines (50 loc) · 1.49 KB
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
general:
branches:
ignore:
- gh-pages
artifacts:
- "artifacts/"
machine:
node:
version: 6
dependencies:
cache_directories:
- "~/.cache/yarn"
override:
- which node
# install dependencies
- ./scripts/bootstrap-env-ubuntu.sh
- yarn install
test:
override:
- node -v
- >
if [ "$CIRCLE_BRANCH" == 'master' ]; then
./scripts/set-dev-version.js
fi;
- yarn lint
- yarn test-ci -- -- --maxWorkers 3
- yarn check-lockfile
- yarn run build-dist
- yarn run build-deb
# Test that the standalone .js build works as expected
- ./artifacts/yarn-`./dist/bin/yarn --version`.js --version
- ./artifacts/yarn-legacy-`./dist/bin/yarn --version`.js --version
# Test that installing as root works and that it also works
# behind a user namespace which Circle CI tests are run under
- sudo env "PATH=$PATH" bin/yarn install --force
deployment:
release:
tag: /v[0-9]+(\.[0-9]+)*/
owner: yarnpkg
commands:
# Only NPM is handled here - All other release files are handled in a webhook.
- echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
- ./scripts/set-installation-method.js "`pwd`/package.json" npm
- npm publish --tag rc
notify:
webhooks:
# Handles uploading stable/RC releases to GitHub
- url: https://nightly.yarnpkg.com/release_circleci
# Handles archiving all builds onto the nightly build site
- url: https://nightly.yarnpkg.com/archive_circleci