include circle ci env vars in docker env
This commit is contained in:
@@ -45,6 +45,7 @@ jobs:
|
|||||||
name: Run tests
|
name: Run tests
|
||||||
command: |
|
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 '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'
|
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:
|
- store_test_results:
|
||||||
path: test/reports
|
path: test/reports
|
||||||
|
|||||||
@@ -49,6 +49,9 @@ services:
|
|||||||
- DANBOORU_NICO_SEIGA_LOGIN
|
- DANBOORU_NICO_SEIGA_LOGIN
|
||||||
- DANBOORU_NICO_SEIGA_PASSWORD
|
- DANBOORU_NICO_SEIGA_PASSWORD
|
||||||
- DANBOORU_PERSIST_PIXIV_SESSION
|
- DANBOORU_PERSIST_PIXIV_SESSION
|
||||||
|
- CIRCLE_NODE_TOTAL
|
||||||
|
- CIRCLE_NODE_INDEX
|
||||||
|
- CIRCLE_BUILD_IMAGE
|
||||||
build:
|
build:
|
||||||
context: ../..
|
context: ../..
|
||||||
dockerfile: config/docker/danbooru-ci
|
dockerfile: config/docker/danbooru-ci
|
||||||
|
|||||||
Reference in New Issue
Block a user