include circle ci env vars in docker env

This commit is contained in:
Albert Yi
2018-05-11 13:16:36 -07:00
parent f273c8070a
commit c6ae060d28
2 changed files with 4 additions and 0 deletions

View File

@@ -45,6 +45,7 @@ jobs:
name: Run tests
command: |
docker-compose -f config/docker/compose.yml exec web bash -c 'curl -o /tmp/circleci https://circle-downloads.s3.amazonaws.com/releases/build_agent_wrapper/circleci && chmod +x /tmp/circleci'
docker-compose -f config/docker/compose.yml exec web bash -c '/tmp/circleci tests glob "test/**/*_test.rb" | /tmp/circleci tests split | xargs echo'
docker-compose -f config/docker/compose.yml exec web bash -c '/tmp/circleci tests glob "test/**/*_test.rb" | /tmp/circleci tests split | xargs bin/rails test'
- store_test_results:
path: test/reports

View File

@@ -49,6 +49,9 @@ services:
- DANBOORU_NICO_SEIGA_LOGIN
- DANBOORU_NICO_SEIGA_PASSWORD
- DANBOORU_PERSIST_PIXIV_SESSION
- CIRCLE_NODE_TOTAL
- CIRCLE_NODE_INDEX
- CIRCLE_BUILD_IMAGE
build:
context: ../..
dockerfile: config/docker/danbooru-ci