Files
yarn/circle.yml
Burak Yiğit Kaya 2c54c02453 Fix: Fix single-file builds and simplify bundles (#4063)
**Summary**

Fixes #4057.

**Test plan**

CI should pass, especially with `build-dist` job.

Manual:

 - Run `yarn build-dist`
 - Run `node artifacts/yarn-0.28.0.js --version`
 - Run `./dist/bin/yarn --version`

Make sure all above commands work without errors.
2017-08-02 12:54:40 +01:00

58 lines
1.3 KiB
YAML

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
# Limit maxWorkers to 3 to avoid OOM on CircleCI
- yarn test-ci -- -- --maxWorkers 3
- yarn check-lockfile
- yarn run build-dist
- yarn run build-deb
# 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 "Releasing $CIRCLE_TAG..."
- echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
- ./scripts/update-npm.sh
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