Skip to content

Commit

Permalink
[#2933] split tests across circle CI containers with circleci-matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
wardi committed Mar 31, 2016
1 parent 0354c17 commit b758adc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .circleci-matrix.yml
@@ -0,0 +1,8 @@
env:
- TEST="ckan.tests.legacy"
- TEST="ckan.tests.logic ckan.tests.model ckan.tests.models"
- TEST="ckanext ckan.tests.functional"
- TEST="ckan.tests.controllers ckan.tests.config ckan.tests.lib ckan.tests.i18n ckan.tests.misc ckan.tests.plugins ckan.tests.schema ckan.tests.test_*"

command:
- nosetests --ckan --reset-db --with-pylons=test-core.ini --nologcapture --with-coverage --cover-package=ckan --cover-package=ckanext --with-xunit --xunit-file=$CIRCLE_TEST_REPORTS/nose/junit.xml $TEST
8 changes: 7 additions & 1 deletion circle.yml
Expand Up @@ -15,6 +15,11 @@ machine:
version: 0.10.33

dependencies:
pre:
- mkdir -p ~/.local/bin
- curl -fsSL https://raw.githubusercontent.com/michaelcontento/circleci-matrix/master/src/circleci-matrix.sh -o ~/.local/bin/circleci-matrix
- chmod +x ~/.local/bin/circleci-matrix

override:
- pip install -r requirements.txt --allow-all-external
- pip install -r dev-requirements.txt --allow-all-external
Expand Down Expand Up @@ -50,7 +55,8 @@ test:
- mkdir -p $CIRCLE_TEST_REPORTS/nose

override:
- nosetests --ckan --reset-db --with-pylons=test-core.ini --nologcapture --with-coverage --cover-package=ckan --cover-package=ckanext --with-xunit --xunit-file=$CIRCLE_TEST_REPORTS/nose/junit.xml ckan ckanext
- circleci-matrix:
parallel: true

post:
- paster serve test-core.ini:
Expand Down

0 comments on commit b758adc

Please sign in to comment.