|
|
|
@ -75,13 +75,13 @@ jobs:
|
|
|
|
|
- make ${MAKEOPTS} -C ports/unix deplibs
|
|
|
|
|
- make ${MAKEOPTS} -C ports/unix VARIANT=coverage
|
|
|
|
|
# run the main test suite
|
|
|
|
|
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests)
|
|
|
|
|
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests -d thread)
|
|
|
|
|
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests --emit native)
|
|
|
|
|
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests --via-mpy -d basics float micropython)
|
|
|
|
|
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests --via-mpy --emit native -d basics float micropython)
|
|
|
|
|
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython-coverage ./run-tests)
|
|
|
|
|
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython-coverage ./run-tests -d thread)
|
|
|
|
|
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython-coverage ./run-tests --emit native)
|
|
|
|
|
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython-coverage ./run-tests --via-mpy -d basics float micropython)
|
|
|
|
|
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython-coverage ./run-tests --via-mpy --emit native -d basics float micropython)
|
|
|
|
|
# test when input script comes from stdin
|
|
|
|
|
- cat tests/basics/0prelim.py | ports/unix/micropython_coverage | grep -q 'abc'
|
|
|
|
|
- cat tests/basics/0prelim.py | ports/unix/micropython-coverage | grep -q 'abc'
|
|
|
|
|
# test building native mpy modules
|
|
|
|
|
- make -C examples/natmod/features1 ARCH=x64
|
|
|
|
|
- make -C examples/natmod/features2 ARCH=x64
|
|
|
|
@ -92,7 +92,7 @@ jobs:
|
|
|
|
|
- make -C examples/natmod/ure ARCH=x64
|
|
|
|
|
- make -C examples/natmod/uzlib ARCH=x64
|
|
|
|
|
# test importing .mpy generated by mpy_ld.py
|
|
|
|
|
- MICROPYPATH=examples/natmod/features2 ./ports/unix/micropython_coverage -m features2
|
|
|
|
|
- MICROPYPATH=examples/natmod/features2 ./ports/unix/micropython-coverage -m features2
|
|
|
|
|
- (cd tests && ./run-natmodtests.py extmod/{btree*,framebuf*,uheapq*,ure*,uzlib*}.py)
|
|
|
|
|
# run coveralls coverage analysis (try to, even if some builds/tests failed)
|
|
|
|
|
- (cd ports/unix && coveralls --root ../.. --build-root . --gcov $(which gcov) --gcov-options '\-o build-coverage/' --include py --include extmod)
|
|
|
|
@ -115,13 +115,13 @@ jobs:
|
|
|
|
|
- make ${MAKEOPTS} -C ports/unix MICROPY_FORCE_32BIT=1 deplibs
|
|
|
|
|
- make ${MAKEOPTS} -C ports/unix MICROPY_FORCE_32BIT=1 coverage
|
|
|
|
|
# run the main test suite
|
|
|
|
|
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests)
|
|
|
|
|
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests -d thread)
|
|
|
|
|
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests --emit native)
|
|
|
|
|
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests --via-mpy --mpy-cross-flags='-mcache-lookup-bc -march=x86' -d basics float micropython)
|
|
|
|
|
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests --via-mpy --emit native --mpy-cross-flags='-mcache-lookup-bc -march=x86' -d basics float micropython)
|
|
|
|
|
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython-coverage ./run-tests)
|
|
|
|
|
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython-coverage ./run-tests -d thread)
|
|
|
|
|
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython-coverage ./run-tests --emit native)
|
|
|
|
|
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython-coverage ./run-tests --via-mpy --mpy-cross-flags='-mcache-lookup-bc -march=x86' -d basics float micropython)
|
|
|
|
|
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython-coverage ./run-tests --via-mpy --emit native --mpy-cross-flags='-mcache-lookup-bc -march=x86' -d basics float micropython)
|
|
|
|
|
# test when input script comes from stdin
|
|
|
|
|
- cat tests/basics/0prelim.py | ports/unix/micropython_coverage | grep -q 'abc'
|
|
|
|
|
- cat tests/basics/0prelim.py | ports/unix/micropython-coverage | grep -q 'abc'
|
|
|
|
|
# test building native mpy modules
|
|
|
|
|
- make -C examples/natmod/features1 ARCH=x86
|
|
|
|
|
- make -C examples/natmod/features2 ARCH=x86
|
|
|
|
@ -132,7 +132,7 @@ jobs:
|
|
|
|
|
- make -C examples/natmod/ure ARCH=x86
|
|
|
|
|
- make -C examples/natmod/uzlib ARCH=x86
|
|
|
|
|
# test importing .mpy generated by mpy_ld.py
|
|
|
|
|
- MICROPYPATH=examples/natmod/features2 ./ports/unix/micropython_coverage -m features2
|
|
|
|
|
- MICROPYPATH=examples/natmod/features2 ./ports/unix/micropython-coverage -m features2
|
|
|
|
|
- (cd tests && ./run-natmodtests.py --arch x86 extmod/{btree*,framebuf*,uheapq*,ure*,uzlib*}.py)
|
|
|
|
|
after_failure:
|
|
|
|
|
- (cd tests && for exp in *.exp; do testbase=$(basename $exp .exp); echo -e "\nFAILURE $testbase"; diff -u $testbase.exp $testbase.out; done)
|
|
|
|
@ -158,7 +158,7 @@ jobs:
|
|
|
|
|
- make ${MAKEOPTS} -C ports/unix submodules
|
|
|
|
|
- make ${MAKEOPTS} -C ports/unix PYTHON=python2 deplibs
|
|
|
|
|
- make ${MAKEOPTS} -C ports/unix PYTHON=python2 VARIANT=nanbox
|
|
|
|
|
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython_nanbox ./run-tests)
|
|
|
|
|
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython-nanbox ./run-tests)
|
|
|
|
|
|
|
|
|
|
# unix stackless
|
|
|
|
|
- stage: test
|
|
|
|
@ -187,7 +187,7 @@ jobs:
|
|
|
|
|
env: NAME="minimal unix port build and tests"
|
|
|
|
|
script:
|
|
|
|
|
- make ${MAKEOPTS} -C ports/unix minimal
|
|
|
|
|
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython_minimal ./run-tests -e exception_chain -e self_type_check -e subclass_native_init -d basics)
|
|
|
|
|
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython-minimal ./run-tests -e exception_chain -e self_type_check -e subclass_native_init -d basics)
|
|
|
|
|
|
|
|
|
|
# windows port via mingw
|
|
|
|
|
- stage: test
|
|
|
|
|