mirror of
https://github.com/yldio/copilot.git
synced 2024-11-14 15:20:06 +02:00
57 lines
1.8 KiB
YAML
57 lines
1.8 KiB
YAML
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: 8.1.2
|
|
|
|
dependencies:
|
|
override:
|
|
# 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
|
|
# install node dependencies
|
|
- yarn install
|
|
|
|
test:
|
|
pre:
|
|
# mkdir lint reports
|
|
- mkdir -p $CIRCLE_TEST_REPORTS/lint:
|
|
parallel: true
|
|
# mkdir test reports
|
|
- mkdir -p $CIRCLE_TEST_REPORTS/test:
|
|
parallel: true
|
|
# mkdir coverage artifact folders
|
|
- ls -1 packages | xargs -I % mkdir -p $CIRCLE_ARTIFACTS/"%":
|
|
parallel: true
|
|
override:
|
|
# 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
|
|
|
|
# deployment:
|
|
# pre:
|
|
# # install docker-compose
|
|
# - 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
|
|
# development:
|
|
# branch: master
|
|
# commands:
|
|
# - ./scripts/deploy
|