8000 travis: For unix tests use Makefile target instead of explicit commands. · yazici/micropython@f552451 · GitHub
[go: up one dir, main page]

Skip to content

Commit f552451

Browse files
committed
travis: For unix tests use Makefile target instead of explicit commands.
1 parent ea1ea90 commit f552451

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

.travis.yml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,8 @@ jobs:
9595
- make ${MAKEOPTS} -C ports/unix deplibs
9696
- make ${MAKEOPTS} -C ports/unix VARIANT=coverage
9797
# run the main test suite
98-
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython-coverage ./run-tests)
99-
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython-coverage ./run-tests -d thread)
100-
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython-coverage ./run-tests --emit native)
101-
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython-coverage ./run-tests --via-mpy -d basics float micropython)
102-
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython-coverage ./run-tests --via-mpy --emit native -d basics float micropython)
98+
- make -C ports/unix VARIANT=coverage test_full
10399
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython-coverage ./run-multitests.py multi_net/*.py)
104-
# test when input script comes from stdin
105-
- cat tests/basics/0prelim.py | ports/unix/micropython-coverage | grep -q 'abc'
106100
# test building native mpy modules
107101
- make -C examples/natmod/features1 ARCH=x64
108102
- make -C examples/natmod/features2 ARCH=x64
@@ -136,13 +130,7 @@ jobs:
136130
- make ${MAKEOPTS} -C ports/unix MICROPY_FORCE_32BIT=1 deplibs
137131
- make ${MAKEOPTS} -C ports/unix MICROPY_FORCE_32BIT=1 VARIANT=coverage
138132
# run the main test suite
139-
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython-coverage ./run-tests)
140-
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython-coverage ./run-tests -d thread)
141-
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython-coverage ./run-tests --emit native)
142-
- (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)
143-
- (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)
144-
# test when input script comes from stdin
145-
- cat tests/basics/0prelim.py | ports/unix/micropython-coverage | grep -q 'abc'
133+
- make -C ports/unix MICROPY_FORCE_32BIT=1 VARIANT=coverage test_full
146134
# test building native mpy modules
147135
- make -C examples/natmod/features1 ARCH=x86
148136
- make -C examples/natmod/features2 ARCH=x86
@@ -179,7 +167,7 @@ jobs:
179167
- make ${MAKEOPTS} -C ports/unix submodules
180168
- make ${MAKEOPTS} -C ports/unix PYTHON=python2 deplibs
181169
- make ${MAKEOPTS} -C ports/unix PYTHON=python2 VARIANT=nanbox
182-
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython-nanbox ./run-tests)
170+
- make ${MAKEOPTS} -C ports/unix PYTHON=python2 VARIANT=nanbox test_full
183171

184172
# unix stackless
185173
- stage: test

0 commit comments

Comments
 (0)
0