.travis.yml 1.69 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
13
14
  # For coverage testing
  - sudo pip install cpp-coveralls
AZ Huang's avatar
AZ Huang committed
15
16

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

30
31
32
33
34
35
36
37
38
39
40
  # 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
  - make -C unix CC=gcc-4.7 coverage
  - (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:
  - (cd unix && coveralls --root .. --build-root . --gcov $(which gcov-4.7) --gcov-options '\-o build-coverage/' --include py --include extmod)
41
42

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