@@ -37,9 +37,8 @@ before_script:
3737 - sudo apt-get install -y --force-yes gcc-arm-embedded
3838 # For teensy build
3939 - sudo apt-get install realpath
40- # For coverage testing
41- # cpp-coveralls 0.4 conflicts with urllib3 preinstalled in Travis VM
42- - sudo pip install cpp-coveralls==0.3.12
40+ # For coverage testing (upgrade is used to get latest urllib3 version)
41+ - sudo pip install --upgrade cpp-coveralls
4342 - gcc --version
4443 - arm-none-eabi-gcc --version
4544 - python3 --version
@@ -48,30 +47,30 @@ script:
4847 # Build mpy-cross first because other builds depend on it.
4948 - make -C mpy-cross
5049 - tools/build_adafruit_bins.sh
51- - make -C minimal CROSS=1 build/firmware.bin
52- - ls -l minimal/build/firmware.bin
50+ - make -C ports/ minimal CROSS=1 build/firmware.bin
51+ - ls -l ports/ minimal/build/firmware.bin
5352 - mkdir -p ${HOME}/persist
5453 # Save new firmware for reference, but only if building a main branch, not a pull request
55- - ' if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then cp minimal/build/firmware.bin ${HOME}/persist/; fi'
56- - make -C unix deplibs
57- - make -C unix
58- - make -C bare-arm
59- - make -C qemu-arm test
54+ - ' if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then cp ports/ minimal/build/firmware.bin ${HOME}/persist/; fi'
55+ - make -C ports/ unix deplibs
56+ - make -C ports/ unix
57+ - make -C ports/ bare-arm
58+ - make -C ports/ qemu-arm test
6059
6160 # run tests without coverage info
6261 # - (cd tests && MICROPY_CPYTHON3=python3.4 ./run-tests)
6362 # - (cd tests && MICROPY_CPYTHON3=python3.4 ./run-tests --emit native)
6463
6564 # run tests with coverage info
66- - make -C unix coverage
67- - (cd tests && MICROPY_CPYTHON3=python3.4 MICROPY_MICROPYTHON=../unix/micropython_coverage ./run-tests)
68- - (cd tests && MICROPY_CPYTHON3=python3.4 MICROPY_MICROPYTHON=../unix/micropython_coverage ./run-tests -d thread)
69- - (cd tests && MICROPY_CPYTHON3=python3.4 MICROPY_MICROPYTHON=../unix/micropython_coverage ./run-tests --emit native)
70- - (cd tests && MICROPY_CPYTHON3=python3.4 MICROPY_MICROPYTHON=../unix/micropython_coverage ./run-tests --via-mpy -d basics float)
65+ - make -C ports/ unix coverage
66+ - (cd tests && MICROPY_CPYTHON3=python3.4 MICROPY_MICROPYTHON=../ports/ unix/micropython_coverage ./run-tests)
67+ - (cd tests && MICROPY_CPYTHON3=python3.4 MICROPY_MICROPYTHON=../ports/ unix/micropython_coverage ./run-tests -d thread)
68+ - (cd tests && MICROPY_CPYTHON3=python3.4 MICROPY_MICROPYTHON=../ports/ unix/micropython_coverage ./run-tests --emit native)
69+ - (cd tests && MICROPY_CPYTHON3=python3.4 MICROPY_MICROPYTHON=../ports/ unix/micropython_coverage ./run-tests --via-mpy -d basics float)
7170
7271 # run coveralls coverage analysis (try to, even if some builds/tests failed)
73- # - (cd unix && coveralls --root .. --build-root . --gcov $(which gcov) --gcov-options '\-o build-coverage/' --include py --include extmod)
72+ # - (cd ports/ unix && coveralls --root ../ .. --build-root . --gcov $(which gcov) --gcov-options '\-o build-coverage/' --include py --include extmod)
7473
7574after_failure :
7675 - (cd tests && for exp in *.exp; do testbase=$(basename $exp .exp); echo -e "\nFAILURE $testbase"; diff -u $testbase.exp $testbase.out; done)
77- - (grep "FAIL" qemu-arm/build/console.out)
76+ - (grep "FAIL" ports/ qemu-arm/build/console.out)
0 commit comments