@@ -77,7 +77,7 @@ before_script:
77
77
- sudo apt-get install -y python3-pip
78
78
- pip3 install --user sh click
79
79
- ([[ -z "$TRAVIS_TESTS" ]] || sudo pip install --upgrade cpp-coveralls)
80
- - (! var_search "${TRAVIS_TESTS-}" docs || pip install --user ' Sphinx<1.8.0' sphinx-rtd-theme recommonmark)
80
+ - (! var_search "${TRAVIS_TESTS-}" docs || pip install --user Sphinx sphinx-rtd-theme recommonmark)
81
81
- (! var_search "${TRAVIS_TESTS-}" translations || pip3 install --user polib)
82
82
83
83
# report some good version numbers to the build
@@ -88,47 +88,47 @@ before_script:
88
88
89
89
script :
90
90
# Build mpy-cross first because other builds depend on it.
91
- - echo 'Building mpy-cross' && echo -en 'travis_fold:start:mpy-cross\\r '
92
- - make -C mpy-cross -j2
93
- - echo -en 'travis_fold:end:mpy-cross\\r'
91
+ - echo 'Building mpy-cross' && echo 'travis_fold:start:mpy-cross'
92
+ - make -C mpy-cross -j2 ; echo $? > status
93
+ - echo 'travis_fold:end:mpy-cross' && tools/print_status.py status
94
94
95
95
# Use unbuffered output because building all the releases can take a long time.
96
96
# Travis will cancel the job if it sees no output for >10 minutes.
97
97
- cd tools && python3 -u build_release_files.py
98
98
- cd ..
99
99
100
- - echo 'Building unix' && echo -en 'travis_fold:start:unix\\r '
101
- - (! var_search "${TRAVIS_TESTS-}" unix || (make -C ports/unix deplibs -j2 && make -C ports/unix -j2 && make -C ports/unix coverage -j2))
102
- - echo -en 'travis_fold:end:unix\\r'
100
+ - echo 'Building unix' && echo 'travis_fold:start:unix'
101
+ - (! var_search "${TRAVIS_TESTS-}" unix || (make -C ports/unix deplibs -j2 && make -C ports/unix -j2 && make -C ports/unix coverage -j2)) ; echo $? > status
102
+ - echo 'travis_fold:end:unix' && tools/print_status.py status
103
103
104
104
# run tests without coverage info
105
105
# - (cd tests && MICROPY_CPYTHON3=python3.4 ./run-tests -j1)
106
106
# - (cd tests && MICROPY_CPYTHON3=python3.4 ./run-tests -j1 --emit native)
107
107
108
108
# run tests with coverage info
109
- - echo 'Test all' && echo -en 'travis_fold:start:test_all\\r '
110
- - (! var_search "${TRAVIS_TESTS-}" unix || (cd tests && MICROPY_CPYTHON3=python3.5 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests -j1))
111
- - echo -en 'travis_fold:end:test_all\\r'
109
+ - echo 'Test all' && echo 'travis_fold:start:test_all'
110
+ - (! var_search "${TRAVIS_TESTS-}" unix || (cd tests && MICROPY_CPYTHON3=python3.5 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests -j1)) ; echo $? > status
111
+ - echo 'travis_fold:end:test_all' && tools/print_status.py status
112
112
113
- - echo 'Test threads' && echo -en 'travis_fold:start:test_threads\\r '
114
- - (! var_search "${TRAVIS_TESTS-}" unix || (cd tests && MICROPY_CPYTHON3=python3.5 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests -j1 -d thread))
115
- - echo -en 'travis_fold:end:test_threads\\r'
113
+ - echo 'Test threads' && echo 'travis_fold:start:test_threads'
114
+ - (! var_search "${TRAVIS_TESTS-}" unix || (cd tests && MICROPY_CPYTHON3=python3.5 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests -j1 -d thread)) ; echo $? >status
115
+ - echo 'travis_fold:end:test_threads' && tools/print_status.py status
116
116
117
- - echo 'Testing with native' && echo -en 'travis_fold:start:test_native\\r '
118
- - (! var_search "${TRAVIS_TESTS-}" unix || (cd tests && MICROPY_CPYTHON3=python3.5 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests -j1 --emit native))
119
- - echo -en 'travis_fold:end:test_native\\r'
117
+ - echo 'Testing with native' && echo 'travis_fold:start:test_native'
118
+ - (! var_search "${TRAVIS_TESTS-}" unix || (cd tests && MICROPY_CPYTHON3=python3.5 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests -j1 --emit native)) ; echo $? >status
119
+ - echo 'travis_fold:end:test_native' && tools/print_status.py status
120
120
121
- - (echo 'Testing with mpy' && echo -en 'travis_fold:start:test_mpy\\r ')
122
- - (! var_search "${TRAVIS_TESTS-}" unix || (cd tests && MICROPY_CPYTHON3=python3.5 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests -j1 --via-mpy -d basics float))
123
- - echo -en 'travis_fold:end:test_mpy\\r'
121
+ - (echo 'Testing with mpy' && echo 'travis_fold:start:test_mpy')
122
+ - (! var_search "${TRAVIS_TESTS-}" unix || (cd tests && MICROPY_CPYTHON3=python3.5 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests -j1 --via-mpy -d basics float)) ; echo $? >status
123
+ - echo 'travis_fold:end:test_mpy' && tools/print_status.py status
124
124
125
- - (echo 'Building docs' && echo -en 'travis_fold:start:build_docs\\r ')
126
- - (! var_search "${TRAVIS_TESTS-}" docs || sphinx-build -E -W -b html . _build/html)
127
- - echo -en 'travis_fold:end:build_docs\\r'
125
+ - (echo 'Building docs' && echo 'travis_fold:start:build_docs')
126
+ - (! var_search "${TRAVIS_TESTS-}" docs || sphinx-build -E -W -b html . _build/html) ; echo $? >status
127
+ - echo 'travis_fold:end:build_docs' && tools/print_status.py status
128
128
129
- - (echo 'Building translations' && echo -en 'travis_fold:start:build_translations\\r ')
130
- - (! var_search "${TRAVIS_TESTS-}" translations || make check-translate)
131
- - echo -en 'travis_fold:end:build_translations\\r'
129
+ - (echo 'Building translations' && echo 'travis_fold:start:build_translations')
130
+ - (! var_search "${TRAVIS_TESTS-}" translations || make check-translate) ; echo $? >status
131
+ - echo 'travis_fold:end:build_translations' && tools/print_status.py status
132
132
133
133
# run coveralls coverage analysis (try to, even if some builds/tests failed)
134
134
# - (cd ports/unix && coveralls --root ../.. --build-root . --gcov $(which gcov) --gcov-options '\-o build-coverage/' --include py --include extmod)
0 commit comments