Skip to content
This repository has been archived by the owner on Jul 2, 2020. It is now read-only.

Commit

Permalink
try to fix artifact collection
Browse files Browse the repository at this point in the history
  • Loading branch information
shayts7 committed Jan 26, 2016
1 parent 8d8d272 commit c31b292
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,26 +19,24 @@ test:
# run jshint
- docker run --name jshint-runner gaiaadm/result-processing grunt jshint
# create artifact folders
- mkdir -p ./$CIRCLE_TEST_REPORTS/nodejs
- mkdir -p ./$CIRCLE_ARTIFACTS/nodejs
- mkdir -p ./$CIRCLE_TEST_REPORTS/python
- mkdir -p ./$CIRCLE_ARTIFACTS/python
- mkdir -p ./mocha-test-output/nodejs
- mkdir -p ./mocha-test-output/python
# run unit tests on pure Node.js image
- docker run --name unit-test-runner gaiaadm/result-processing grunt unit
- docker cp unit-test-runner:/src/unit-test-results.xml $CIRCLE_TEST_REPORTS/nodejs/unit-test-results.xml
- docker cp unit-test-runner:/src/unit-test-results.txt $CIRCLE_ARTIFACTS/nodejs/unit-test-results.txt
- docker cp unit-test-runner:/src/unit-test-results.xml ./mocha-test-output/nodejs/unit-test-results.xml
- docker cp unit-test-runner:/src/unit-test-results.txt ./mocha-test-output/nodejs/unit-test-results.txt
# run system tests on pure Node.js image
- docker run -e AMQ_USER="admin" -e AMQ_PASSWORD="admin" -e AMQ_SERVER="rabbitmq:5672" --link rabbitmq:rabbitmq --name system-test-runner gaiaadm/result-processing grunt system
- docker cp system-test-runner:/src/system-test-results.xml $CIRCLE_TEST_REPORTS/nodejs/system-test-results.xml
- docker cp system-test-runner:/src/system-test-results.txt $CIRCLE_ARTIFACTS/nodejs/system-test-results.txt
- docker cp system-test-runner:/src/system-test-results.xml ./mocha-test-output/nodejs/system-test-results.xml
- docker cp system-test-runner:/src/system-test-results.txt ./mocha-test-output/nodejs/system-test-results.txt
# run unit tests on Python image
- docker run --name unit-test-runner-python gaiaadm/result-processing:latest-python grunt unit
- docker cp unit-test-runner-python:/src/unit-test-results.xml $CIRCLE_TEST_REPORTS/python/unit-test-results.xml
- docker cp unit-test-runner-python:/src/unit-test-results.txt $CIRCLE_ARTIFACTS/python/unit-test-results.txt
- docker cp unit-test-runner-python:/src/unit-test-results.xml ./mocha-test-output/python/unit-test-results.xml
- docker cp unit-test-runner-python:/src/unit-test-results.txt ./mocha-test-output/python/unit-test-results.txt
# run system tests on Python image
- docker run -e AMQ_USER="admin" -e AMQ_PASSWORD="admin" -e AMQ_SERVER="rabbitmq:5672" --link rabbitmq:rabbitmq --name system-test-runner-python gaiaadm/result-processing:latest-python grunt system
- docker cp system-test-runner-python:/src/system-test-results.xml $CIRCLE_TEST_REPORTS/python/system-test-results.xml
- docker cp system-test-runner-python:/src/system-test-results.txt $CIRCLE_ARTIFACTS/python/system-test-results.txt
- docker cp system-test-runner-python:/src/system-test-results.xml ./mocha-test-output/python/system-test-results.xml
- docker cp system-test-runner-python:/src/system-test-results.txt ./mocha-test-output/python/system-test-results.txt
deployment:
continuous:
branch: master
Expand Down

0 comments on commit c31b292

Please sign in to comment.