1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-10 21:30:06 +02:00
copilot/circle.yml

55 lines
2.0 KiB
YAML
Raw Normal View History

2017-05-26 13:17:00 +03:00
# Customize the test machine
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:
version: 7.7.3
dependencies:
pre:
# install docker-compose
- 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
- 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
- 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 -
- triton env --docker eu-ams-1
# setup tap report
- mkdir -p ${CIRCLE_TEST_REPORTS}/tap-xunit/
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:
override:
# lint
- yarn run lint
# test
- yarn run test
2017-05-30 20:52:10 +03:00
deployment:
development:
branch: master
commands:
- ./bin/docker-login
2017-05-30 21:45:00 +03:00
- ./bin/build
2017-05-30 20:52:10 +03:00
- ./bin/deploy
2017-05-26 13:17:00 +03:00
# production:
# tag: /production-*/
# commands:
# - CIRCLE_BRANCH=staging ./bin/docker-login
# - CIRCLE_BRANCH=staging ./bin/on-changes-publish-ui
# - CIRCLE_BRANCH=staging make -j2 build
# - CIRCLE_BRANCH=staging make -j2 push
# - CIRCLE_BRANCH=staging ./bin/deploy