diff options
author | Marc Bonnici <marc.bonnici@arm.com> | 2018-07-11 10:17:38 +0100 |
---|---|---|
committer | setrofim <setrofim@gmail.com> | 2018-07-13 13:32:41 +0100 |
commit | 8a2c660fdd4cc781e0f9b6ff80d79e333e6efe17 (patch) | |
tree | c05a4bd09e7913fb58415230762f74d8ef0fc025 | |
parent | dacb350992e5a23cb5a0c5783afef85872ddc9cb (diff) |
Travis: Improve testing organisation
Split the tests into their own jobs so it is easier to see what test is
failing, also only run pep8 and pylint tests with python 3.6 as it is
uncessary to run with both python versions.
-rw-r--r-- | .travis.yml | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/.travis.yml b/.travis.yml index cc244ad7..f8e6b4a2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,20 +16,34 @@ language: python python: - - "2.7" - "3.6" + - "2.7" install: - pip install nose - pip install nose2 - pip install flake8 - pip install pylint - -script: - git clone -v https://github.com/ARM-software/devlib.git /tmp/devlib && cd /tmp/devlib && python setup.py install - cd $TRAVIS_BUILD_DIR && python setup.py install - - nose2 -s $TRAVIS_BUILD_DIR/tests - - cd /tmp && wa run $TRAVIS_BUILD_DIR/tests/travis/idle_agenda.yaml -v -d idle_workload - - cd $TRAVIS_BUILD_DIR && ./dev_scripts/pylint wa - - cd $TRAVIS_BUILD_DIR && ./dev_scripts/pep8 wa +env: + global: + - PYLINT="cd $TRAVIS_BUILD_DIR && ./dev_scripts/pylint wa" + - PEP8="cd $TRAVIS_BUILD_DIR && ./dev_scripts/pep8 wa" + - NOSETESTS="nose2 -s $TRAVIS_BUILD_DIR/tests" + - WORKLOAD="cd /tmp && wa run $TRAVIS_BUILD_DIR/tests/travis/idle_agenda.yaml -v -d idle_workload" + matrix: + - TEST=$PYLINT + - TEST=$PEP8 + - TEST=$NOSETESTS + - TEST=$WORKLOAD +script: + - echo $TEST && eval $TEST + +matrix: + exclude: + - python: "2.7" + env: TEST=$PYLINT + - python: "2.7" + env: TEST=$PEP8 |