add env variables when running rspec

This commit is contained in:
Joerg Reichert 2016-03-05 23:24:36 +01:00
parent 580d8c6fce
commit 8974da062c
3 changed files with 1 additions and 4 deletions

View file

@ -1,2 +0,0 @@
CI=true
TRAVIS=true

View file

@ -7,4 +7,4 @@ services:
script: script:
- docker-compose run web rake db:setup - docker-compose run web rake db:setup
- docker-compose run web rspec - docker-compose run web bash -c 'CI=true TRAVIS=true TRAVIS_BRANCH=$TRAVIS_BRANCH TRAVIS_COMMIT=$TRAVIS_COMMIT TRAVIS_JOB_NUMBER=$TRAVIS_JOB_NUMBER TRAVIS_PULL_REQUEST=$TRAVIS_PULL_REQUEST TRAVIS_JOB_ID=$TRAVIS_JOB_ID TRAVIS_REPO_SLUG=$TRAVIS_REPO_SLUG rspec'

View file

@ -8,6 +8,5 @@ web:
- elasticsearch - elasticsearch
environment: environment:
ELASTICSEARCH_URL: 'http://elasticsearch:9200' ELASTICSEARCH_URL: 'http://elasticsearch:9200'
env_file: ./.ci.env
elasticsearch: elasticsearch:
image: elasticsearch:1.7 image: elasticsearch:1.7