joyent-portal/circle.yml

45 lines
1.6 KiB
YAML
Raw Normal View History

## Customize the test machine
machine:
pre:
- git config --global user.email "circleci@joyent.zone"
- git config --global user.name "circlebot"
2016-10-21 19:09:14 +03:00
- curl -sSL https://s3.amazonaws.com/circle-downloads/install-circleci-docker.sh | bash -s -- 1.10.0
2016-11-02 18:45:57 +02:00
- curl -o- -L https://yarnpkg.com/install.sh | bash
services:
- docker
2016-10-19 17:24:46 +03:00
node:
2017-01-05 13:05:02 +02:00
version: 6.9.3
dependencies:
2016-10-21 18:44:35 +03:00
pre:
- sudo curl -L https://github.com/docker/compose/releases/download/1.8.1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
2016-10-26 12:58:24 +03:00
- sudo chmod +x /usr/local/bin/docker-compose
- yarn global add triton || cat /home/ubuntu/.yarn-config/global/yarn-error.log
2016-10-21 19:05:06 +03:00
- echo '{"url":"https://eu-ams-1.api.joyent.com","account":"'$SDC_ACCOUNT'","keyId":"c3:30:35:9b:85:48:73:44:31:cc:4b:2e:6a:00:16:e2","name":"eu-ams-1","curr":true}' | triton profile create -f -
2016-11-23 14:11:42 +02:00
- triton env --docker eu-ams-1
- mkdir -p ${CIRCLE_TEST_REPORTS}/tap-xunit/
2017-01-03 15:53:24 +02:00
- echo -e "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
override:
2016-10-27 18:50:47 +03:00
- make && make install
test:
override:
2016-10-31 16:17:08 +02:00
- make -j2 lint-ci test-ci
deployment:
production: # just a label; label names are completely up to you
branch: master
commands:
2016-10-31 19:09:00 +02:00
- ./bin/docker-login
2017-01-05 12:46:10 +02:00
- make -C ui publish | sed '/NPM_TOKEN/d'
2017-01-05 12:38:53 +02:00
- make -j2 build | sed '/NPM_TOKEN/d'
- make -j2 push | sed '/NPM_TOKEN/d'
2016-10-20 16:55:05 +03:00
- ./bin/deploy
## Custom notifications
# notify:
# webhooks:
# # A list of hashes representing hooks. Only the url field is supported.
# - url: https://someurl.com/hooks/circle