.travis.yml 1.01 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.3 python3 gcc-4.7 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
16
  - make -C unix CC=gcc-4.7
  - make -C unix-cpy CC=gcc-4.7
17
  - make -C bare-arm
18
  - make -C qemu-arm test
19
  - make -C stmhal
20
  - make -C stmhal -B MICROPY_PY_WIZNET5K=1 MICROPY_PY_CC3K=1
21
22
  - make -C stmhal BOARD=STM32F4DISC
  - make -C teensy
23
24
  - make -C windows CROSS_COMPILE=i586-mingw32msvc-

25
  - (cd tests && MICROPY_CPYTHON3=python3.3 ./run-tests)
26
  - (cd tests && MICROPY_CPYTHON3=python3.3 ./run-tests --emit native)
27
28

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