From 90d1afbc09e8582f558740ca1b8e8434b88f9d40 Mon Sep 17 00:00:00 2001 From: Grant Heffernan Date: Wed, 28 Oct 2015 09:49:07 -0400 Subject: [PATCH] - separate prod and prod_build env deploys - run acceptance tests after deploy --- circle.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/circle.yml b/circle.yml index 0fd2eaf7..12b762c5 100644 --- a/circle.yml +++ b/circle.yml @@ -9,18 +9,23 @@ dependencies: - echo "{\"mapzen\":{\"api_key\":{\"search.mapzen.com\":\"$SEARCH_API_KEY\",\"pelias.mapzen.com\":\"$PELIAS_API_KEY\"}}}" >~/pelias.json deployment: + prod_build: + branch: production + commands: + - git clone git@github.com:pelias/acceptance-tests && cd acceptance-tests && npm install + - git clone git@github.com:mapzen/pelias-deploy.git && cd pelias-deploy && bundle install + - cd pelias-deploy && bundle exec rake deploy:api[prod_build] prod: branch: production commands: - git clone git@github.com:pelias/acceptance-tests && cd acceptance-tests && npm install - - cd acceptance-tests && npm test -- -e prod - git clone git@github.com:mapzen/pelias-deploy.git && cd pelias-deploy && bundle install - cd pelias-deploy && bundle exec rake deploy:api[prod] - - cd pelias-deploy && bundle exec rake deploy:api[prod_build] + - cd acceptance-tests && npm test -- -e prod dev: branch: master commands: - git clone git@github.com:pelias/acceptance-tests && cd acceptance-tests && npm install - - cd acceptance-tests && npm test -- -e dev - git clone git@github.com:mapzen/pelias-deploy.git && cd pelias-deploy && bundle install - cd pelias-deploy && bundle exec rake deploy:api[dev] + - cd acceptance-tests && npm test -- -e dev