From 62817b1139dd90fd22ec8687df74435e406869c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=85ke=20Forslund?= Date: Thu, 29 Oct 2020 12:21:19 +0100 Subject: [PATCH 1/2] Only build mimic once during travis tests Save some CPU cycles by only building mimic once. The build shouldn't differ vastly (or at all) between runs. --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 7e246ba04950..732b89389532 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,7 +26,9 @@ install: - rm -rf ${TMPDIR} - mkdir ${TMPDIR} - echo ${TMPDIR} - - VIRTUALENV_ROOT=${VIRTUAL_ENV} ./dev_setup.sh + - if [[ $TRAVIS_PYTHON_VERSION == 3.9 ]]; then VIRTUALENV_ROOT=${VIRTUAL_ENV} ./dev_setup.sh; fi +# Skip mimic build for other versions + - if [[ $TRAVIS_PYTHON_VERSION != 3.9 ]]; then VIRTUALENV_ROOT=${VIRTUAL_ENV} ./dev_setup.sh -sm; fi # command to run tests script: - pycodestyle mycroft test From e3e01ee936218d65c79cc0cde28b4bdaa1c47750 Mon Sep 17 00:00:00 2001 From: Kris Gesling Date: Wed, 4 Nov 2020 15:11:30 +0930 Subject: [PATCH 2/2] add reason for skipping Mimic build --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 732b89389532..f9c2a3ab2a7d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,7 +27,7 @@ install: - mkdir ${TMPDIR} - echo ${TMPDIR} - if [[ $TRAVIS_PYTHON_VERSION == 3.9 ]]; then VIRTUALENV_ROOT=${VIRTUAL_ENV} ./dev_setup.sh; fi -# Skip mimic build for other versions +# Skip mimic build for other versions because they should not differ - if [[ $TRAVIS_PYTHON_VERSION != 3.9 ]]; then VIRTUALENV_ROOT=${VIRTUAL_ENV} ./dev_setup.sh -sm; fi # command to run tests script: