.travis.yml 1.15 KB
Newer Older
AZ Huang's avatar
AZ Huang committed
1
2
3
4
5
language: c
compiler:
  - gcc

before_script:
Andrew Scheller's avatar
Andrew Scheller committed
6
  - sudo add-apt-repository -y ppa:fkrull/deadsnakes
7
  - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
Andrew Scheller's avatar
Andrew Scheller committed
8
  - sudo add-apt-repository -y ppa:terry.guo/gcc-arm-embedded
Andrew Scheller's avatar
Andrew Scheller committed
9
  - sudo apt-get update -qq
10
  - sudo apt-get install -y python3.4 python3 gcc-4.7 gcc-multilib gcc-arm-none-eabi qemu-system mingw32
11
12
  # For teensy build
  - sudo apt-get install realpath
AZ Huang's avatar
AZ Huang committed
13
14

script:
15
  - make -C minimal test
16
17
  - make -C unix CC=gcc-4.7
  - make -C unix-cpy CC=gcc-4.7
18
  - make -C bare-arm
19
  - make -C qemu-arm test
20
  - make -C stmhal
21
  - make -C stmhal -B MICROPY_PY_WIZNET5K=1 MICROPY_PY_CC3K=1
22
23
  - make -C stmhal BOARD=STM32F4DISC
  - make -C teensy
24
25
  - make -C cc3200 BTARGET=application BTYPE=release
  - make -C cc3200 BTARGET=bootloader  BTYPE=release
26
27
  - make -C windows CROSS_COMPILE=i586-mingw32msvc-

28
29
  - (cd tests && MICROPY_CPYTHON3=python3.4 ./run-tests)
  - (cd tests && MICROPY_CPYTHON3=python3.4 ./run-tests --emit native)
30
31

after_failure:
32
  - (cd tests && for exp in *.exp; do testbase=$(basename $exp .exp); echo -e "\nFAILURE $testbase"; diff -u $testbase.exp $testbase.out; done)
33
  - (grep "FAIL" qemu-arm/build/console.out)