Files
yarn/circle.yml
Konstantin Raev b52b7c5f38 Added build-dist and check-lockfile to Circle (#390)
Until we get Travis as stable as Circle I rely on Circle green badge when accepting PRs.
This change adds the 2 missing commands to Circle.
2016-09-21 16:35:22 +01:00

31 lines
769 B
YAML

general:
branches:
ignore:
- gh-pages
dependencies:
override:
- nvm install 4.3.2
- nvm install 6
- nvm use 6 && nvm alias default 6
- which node
# TODO test yarn with node_modules installed via npm2, npm3 and latest stable yarn
- npm install
- go get github.com/tcnksm/ghr
test:
override:
- nvm use 4.3.2 && nvm alias default 4.3.2
- node -v
- npm run test-ci
- nvm use 6 && nvm alias default 6
- node -v
- npm run test-ci
- npm run build-dist
- npm run check-lockfile
deployment:
release:
tag: /v[0-9]+(\.[0-9]+)*/
owner: yarnpkg
commands:
- ghr --username yarnpkg --repository yarn --token $KPM_CIRCLE_RELEASE_TOKEN v$(node dist/bin/yarn --version) dist/yarn-v*.tar.gz