mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2024-12-22 23:53:15 +01:00
add env variables when running rspec
This commit is contained in:
parent
580d8c6fce
commit
8974da062c
3 changed files with 1 additions and 4 deletions
2
.ci.env
2
.ci.env
|
@ -1,2 +0,0 @@
|
||||||
CI=true
|
|
||||||
TRAVIS=true
|
|
|
@ -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'
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue