1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-28 14:10:04 +02:00
copilot/circle.yml

58 lines
1.8 KiB
YAML
Raw Normal View History

2017-05-26 13:17:00 +03:00
machine:
pre:
- git config --global user.email "circleci@joyent.zone"
- git config --global user.name "circlebot"
- curl -sSL https://s3.amazonaws.com/circle-downloads/install-circleci-docker.sh | bash -s -- 1.10.0
services:
- docker
node:
2017-06-01 15:03:11 +03:00
version: 7.10.0
2017-05-26 13:17:00 +03:00
dependencies:
override:
2017-05-30 15:40:37 +03:00
# add rethinkdb sources
- source /etc/lsb-release && echo "deb http://download.rethinkdb.com/apt $DISTRIB_CODENAME main" | sudo tee /etc/apt/sources.list.d/rethinkdb.list
- wget -qO- https://download.rethinkdb.com/apt/pubkey.gpg | sudo apt-key add -
# install zmq and rdb
- sudo apt-get update && sudo apt-get install libzmq3-dev rethinkdb
2017-05-26 13:39:39 +03:00
# install node dependencies
2017-05-26 13:28:33 +03:00
- yarn install
2017-05-26 13:33:32 +03:00
- yarn run prepare
2017-05-26 13:17:00 +03:00
test:
pre:
2017-05-31 23:57:11 +03:00
# mkdir lint reports
2017-06-01 17:57:28 +03:00
- mkdir -p $CIRCLE_TEST_REPORTS/lint:
parallel: true
2017-05-31 23:57:11 +03:00
# mkdir test reports
2017-06-01 17:57:28 +03:00
- mkdir -p $CIRCLE_TEST_REPORTS/test:
parallel: true
2017-05-31 23:57:11 +03:00
# mkdir coverage artifact folders
2017-06-01 17:57:28 +03:00
- ls -1 packages | xargs -I % mkdir -p $CIRCLE_ARTIFACTS/"%":
parallel: true
2017-05-26 13:17:00 +03:00
override:
2017-06-01 15:03:11 +03:00
# lint
- ./scripts/parallel-run --cmd="lint-ci":
parallel: true
files:
- packages/*/package.json
- package.json
# test
- ./scripts/parallel-run --cmd="test-ci":
parallel: true
files:
- packages/*/package.json
- package.json
2017-05-26 13:17:00 +03:00
2017-05-30 20:52:10 +03:00
deployment:
pre:
# install docker-compose
2017-06-01 03:28:03 +03:00
- sudo curl -L https://github.com/docker/compose/releases/download/1.13.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
- sudo chmod +x /usr/local/bin/docker-compose
# install and setup triton
- yarn global add triton@4.15.0 || cat /home/ubuntu/.yarn-config/global/yarn-error.log
2017-05-30 20:52:10 +03:00
development:
branch: master
commands:
- ./scripts/deploy