Skip to content

Commit c1cd259

Browse files
committed
travis.yml: best guesses about when to run tests in parallel
Notably, "--via-mpy" spews failures when threaded, possibly indicating that micropython is not creating mpy files in threadsafe manner.
1 parent c2b8529 commit c1cd259

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.travis.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,24 +78,24 @@ script:
7878
- echo -en 'travis_fold:end:qemu\\r'
7979

8080
# run tests without coverage info
81-
#- (cd tests && MICROPY_CPYTHON3=python3.4 ./run-tests)
82-
#- (cd tests && MICROPY_CPYTHON3=python3.4 ./run-tests --emit native)
81+
#- (cd tests && MICROPY_CPYTHON3=python3.4 ./run-tests --auto-jobs)
82+
#- (cd tests && MICROPY_CPYTHON3=python3.4 ./run-tests --auto-jobs --emit native)
8383

8484
# run tests with coverage info
8585
- echo 'Test all' && echo -en 'travis_fold:start:test_all\\r'
86-
- ([[ $TRAVIS_TEST != "unix" ]] || (cd tests && MICROPY_CPYTHON3=python3.4 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests))
86+
- ([[ $TRAVIS_TEST != "unix" ]] || (cd tests && MICROPY_CPYTHON3=python3.4 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests --auto-jobs))
8787
- echo -en 'travis_fold:end:test_all\\r'
8888

8989
- echo 'Test threads' && echo -en 'travis_fold:start:test_threads\\r'
90-
- ([[ $TRAVIS_TEST != "unix" ]] || (cd tests && MICROPY_CPYTHON3=python3.4 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests -d thread))
90+
- ([[ $TRAVIS_TEST != "unix" ]] || (cd tests && MICROPY_CPYTHON3=python3.4 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests --auto-jobs -d thread))
9191
- echo -en 'travis_fold:end:test_threads\\r'
9292

9393
- echo 'Testing with native' && echo -en 'travis_fold:start:test_native\\r'
94-
- ([[ $TRAVIS_TEST != "unix" ]] || (cd tests && MICROPY_CPYTHON3=python3.4 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests --emit native))
94+
- ([[ $TRAVIS_TEST != "unix" ]] || (cd tests && MICROPY_CPYTHON3=python3.4 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests --auto-jobs --emit native))
9595
- echo -en 'travis_fold:end:test_native\\r'
9696

9797
- (echo 'Testing with mpy' && echo -en 'travis_fold:start:test_mpy\\r')
98-
- ([[ $TRAVIS_TEST != "unix" ]] || (cd tests && MICROPY_CPYTHON3=python3.4 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests --via-mpy -d basics float))
98+
- ([[ $TRAVIS_TEST != "unix" ]] || (cd tests && MICROPY_CPYTHON3=python3.4 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests -j1 --via-mpy -d basics float))
9999
- echo -en 'travis_fold:end:test_mpy\\r'
100100

101101
- (echo 'Building docs' && echo -en 'travis_fold:start:build_docs\\r')

0 commit comments

Comments
 (0)