2016-01-17 07:12:53 -05:00
|
|
|
sudo: required
|
|
|
|
dist: trusty
|
2014-04-14 14:05:47 -04:00
|
|
|
language: c
|
|
|
|
compiler:
|
|
|
|
- gcc
|
|
|
|
|
|
|
|
before_script:
|
2016-01-17 07:12:53 -05:00
|
|
|
# Extra CPython versions
|
|
|
|
# - sudo add-apt-repository -y ppa:fkrull/deadsnakes
|
|
|
|
# Extra gcc versions
|
|
|
|
# - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
|
2014-04-14 22:02:17 -04:00
|
|
|
- sudo add-apt-repository -y ppa:terry.guo/gcc-arm-embedded
|
2016-01-17 07:12:53 -05:00
|
|
|
- sudo dpkg --add-architecture i386
|
2014-04-14 19:52:15 -04:00
|
|
|
- sudo apt-get update -qq
|
2016-01-17 07:12:53 -05:00
|
|
|
- sudo apt-get install -y python3 gcc-multilib gcc-arm-none-eabi pkg-config libffi-dev libffi-dev:i386 qemu-system mingw32
|
2014-10-06 16:48:24 -04:00
|
|
|
# For teensy build
|
|
|
|
- sudo apt-get install realpath
|
2015-03-01 08:37:27 -05:00
|
|
|
# For coverage testing
|
|
|
|
- sudo pip install cpp-coveralls
|
2016-01-17 07:12:53 -05:00
|
|
|
- gcc --version
|
|
|
|
- arm-none-eabi-gcc --version
|
|
|
|
- python3 --version
|
2014-04-14 14:05:47 -04:00
|
|
|
|
|
|
|
script:
|
2015-01-13 07:39:29 -05:00
|
|
|
- make -C minimal test
|
2016-01-17 07:12:53 -05:00
|
|
|
- make -C unix deplibs
|
|
|
|
- make -C unix
|
|
|
|
- make -C unix nanbox
|
2014-04-14 23:36:25 -04:00
|
|
|
- make -C bare-arm
|
2015-01-08 19:03:21 -05:00
|
|
|
- make -C qemu-arm test
|
2014-04-14 23:36:25 -04:00
|
|
|
- make -C stmhal
|
2014-10-30 11:28:15 -04:00
|
|
|
- make -C stmhal -B MICROPY_PY_WIZNET5K=1 MICROPY_PY_CC3K=1
|
2014-08-05 10:04:11 -04:00
|
|
|
- make -C stmhal BOARD=STM32F4DISC
|
|
|
|
- make -C teensy
|
2015-02-06 09:35:48 -05:00
|
|
|
- make -C cc3200 BTARGET=application BTYPE=release
|
|
|
|
- make -C cc3200 BTARGET=bootloader BTYPE=release
|
2014-05-11 13:33:13 -04:00
|
|
|
- make -C windows CROSS_COMPILE=i586-mingw32msvc-
|
|
|
|
|
2015-03-01 08:37:27 -05:00
|
|
|
# run tests without coverage info
|
|
|
|
#- (cd tests && MICROPY_CPYTHON3=python3.4 ./run-tests)
|
|
|
|
#- (cd tests && MICROPY_CPYTHON3=python3.4 ./run-tests --emit native)
|
|
|
|
|
|
|
|
# run tests with coverage info
|
2016-01-17 07:12:53 -05:00
|
|
|
- make -C unix coverage
|
2015-03-01 08:37:27 -05:00
|
|
|
- (cd tests && MICROPY_CPYTHON3=python3.4 MICROPY_MICROPYTHON=../unix/micropython_coverage ./run-tests)
|
|
|
|
- (cd tests && MICROPY_CPYTHON3=python3.4 MICROPY_MICROPYTHON=../unix/micropython_coverage ./run-tests --emit native)
|
|
|
|
|
|
|
|
after_success:
|
2016-01-17 07:12:53 -05:00
|
|
|
- (cd unix && coveralls --root .. --build-root . --gcov $(which gcov) --gcov-options '\-o build-coverage/' --include py --include extmod)
|
2014-04-15 07:52:59 -04:00
|
|
|
|
|
|
|
after_failure:
|
2014-06-25 17:05:53 -04:00
|
|
|
- (cd tests && for exp in *.exp; do testbase=$(basename $exp .exp); echo -e "\nFAILURE $testbase"; diff -u $testbase.exp $testbase.out; done)
|
2015-01-12 10:50:08 -05:00
|
|
|
- (grep "FAIL" qemu-arm/build/console.out)
|