-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathcircle.yml
30 lines (27 loc) · 972 Bytes
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
machine:
java:
version: oraclejdk8
node:
version: 6.7.0
environment:
PATH: "${PATH}:${HOME}/.yarn/bin"
dependencies:
cache_directories:
- ${HOME}/.yarn
pre:
- sudo rsync -r --include=*/ --include=*.jar --exclude=* .jdk-overlay/jre $JAVA_HOME
post:
- yarn global --cache-folder ${HOME}/.yarn/cache add aglio --prefix ${HOME}/.yarn
deployment:
development:
branch: master
commands:
- git clone --depth 1 [email protected]:tokenbrowser/docs.git $HOME/docs
- $HOME/docs/deploy-blueprint.sh $CIRCLE_PROJECT_REPONAME docs/api.apib $CIRCLE_SHA1
- git push -f [email protected]:token-chat-service-development.git $CIRCLE_SHA1:master
- heroku run -s hobby --app token-chat-service-development -- ./heroku-init.sh
production:
branch: production
commands:
- git push -f [email protected]:token-chat-service.git $CIRCLE_SHA1:master
- heroku run -s hobby --app token-chat-service -- ./heroku-init.sh