Browse Source

- separate prod and prod_build env deploys

- run acceptance tests after deploy
remove_ngrams_from_search
Grant Heffernan 9 years ago
parent
commit
90d1afbc09
  1. 11
      circle.yml

11
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 - echo "{\"mapzen\":{\"api_key\":{\"search.mapzen.com\":\"$SEARCH_API_KEY\",\"pelias.mapzen.com\":\"$PELIAS_API_KEY\"}}}" >~/pelias.json
deployment: 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: prod:
branch: production branch: production
commands: commands:
- git clone git@github.com:pelias/acceptance-tests && cd acceptance-tests && npm install - 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 - 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]
- cd pelias-deploy && bundle exec rake deploy:api[prod_build] - cd acceptance-tests && npm test -- -e prod
dev: dev:
branch: master branch: master
commands: commands:
- git clone git@github.com:pelias/acceptance-tests && cd acceptance-tests && npm install - 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 - git clone git@github.com:mapzen/pelias-deploy.git && cd pelias-deploy && bundle install
- cd pelias-deploy && bundle exec rake deploy:api[dev] - cd pelias-deploy && bundle exec rake deploy:api[dev]
- cd acceptance-tests && npm test -- -e dev

Loading…
Cancel
Save