joyent-portal/circle.yml

46 lines
1.5 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
- sudo apt-key adv --keyserver pgp.mit.edu --recv D101F7899D41F3C3
- echo "deb http://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
- sudo apt-get update && sudo apt-get install yarn
timezone:
Europe/London
services:
- docker
2016-10-19 17:24:46 +03:00
node:
version: 6.9.1
dependencies:
2016-10-21 18:44:35 +03:00
cache_directories:
- "/opt/circleci/python/2.7.11/lib/python2.7/site-packages"
2016-10-21 18:44:35 +03:00
pre:
2016-10-26 12:58:24 +03:00
- sudo curl -L https://github.com/docker/compose/releases/download/1.8.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
- sudo chmod +x /usr/local/bin/docker-compose
- docker-compose -v
- yarn global add triton
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-10-19 17:24:46 +03:00
post:
2016-10-17 20:00:50 +03:00
- make install
test:
2016-10-19 17:24:46 +03:00
post:
- make test
deployment:
production: # just a label; label names are completely up to you
branch: master
commands:
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