From 14df2c703c066785bbb0bafb057ad1ee07ddbb8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81rgio=20Ramos?= Date: Wed, 31 May 2017 11:13:46 +0100 Subject: [PATCH] chore: install dependencies on deployment stage --- circle.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/circle.yml b/circle.yml index 4768f80f..02309b30 100644 --- a/circle.yml +++ b/circle.yml @@ -10,14 +10,6 @@ machine: 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":"'$SDC_KEY_ID'", "name":"eu-ams-1", "curr":true}' | triton profile create -f - - - triton env --docker eu-ams-1 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 @@ -36,6 +28,15 @@ test: - yarn run test deployment: + 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":"'$SDC_KEY_ID'", "name":"eu-ams-1", "curr":true}' | triton profile create -f - + - triton env --docker eu-ams-1 + development: branch: master commands: