Skip to content
Permalink
Browse files

travis: Change conditional from jobs to stages.

  • Loading branch information...
dpgeorge committed Jul 12, 2019
1 parent 9252c20 commit a2943f779aa44535bf846db2e224a980b7543745
Showing with 14 additions and 13 deletions.
  1. +14 −13 .travis.yml
@@ -19,14 +19,16 @@ git:
# define the successive stages
stages:
- name: test
if: os = linux
- name: test_osx
if: os = osx

# define the jobs for the stages
# order of the jobs has longest running first to optimise total time
jobs:
include:
# stm32 port
- stage: test
if: os = linux
env: NAME="stm32 port build"
install:
# need newer gcc version for Cortex-M7 support
@@ -47,7 +49,6 @@ jobs:

# qemu-arm port
- stage: test
if: os = linux
env: NAME="qemu-arm port build and tests"
install:
- sudo apt-get install gcc-arm-none-eabi
@@ -63,7 +64,6 @@ jobs:

# unix coverage
- stage: test
if: os = linux
env: NAME="unix coverage build and tests"
install:
- sudo pip install cpp-coveralls
@@ -98,9 +98,19 @@ jobs:
- make ${MAKEOPTS} -C ports/unix test
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython ./run-perfbench.py 1000 1000)

# standard unix port
- stage: test_osx
env: NAME="unix port build and tests"
script:
- git submodule update --init lib/axtls lib/berkeley-db-1.xx lib/libffi
- make ${MAKEOPTS} -C mpy-cross
- make ${MAKEOPTS} -C ports/unix deplibs
- make ${MAKEOPTS} -C ports/unix
- make ${MAKEOPTS} -C ports/unix test
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython ./run-perfbench.py 1000 1000)

# unix nanbox
- stage: test
if: os = linux
env: NAME="unix nanbox port build and tests"
install:
- sudo apt-get install gcc-multilib libffi-dev:i386
@@ -113,7 +123,6 @@ jobs:

# unix stackless
- stage: test
if: os = linux
env: NAME="unix stackless port build and tests with clang"
install:
- sudo apt-get install clang
@@ -126,7 +135,6 @@ jobs:

# windows port via mingw
- stage: test
if: os = linux
env: NAME="windows port build via mingw"
install:
- sudo apt-get install gcc-mingw-w64
@@ -136,7 +144,6 @@ jobs:

# esp32 port
- stage: test
if: os = linux
env: NAME="esp32 port build"
install:
- sudo apt-get install python3-pip
@@ -154,7 +161,6 @@ jobs:

# esp8266 port
- stage: test
if: os = linux
env: NAME="esp8266 port build"
install:
- wget https://github.com/jepler/esp-open-sdk/releases/download/2018-06-10/xtensa-lx106-elf-standalone.tar.gz
@@ -167,7 +173,6 @@ jobs:

# nrf port
- stage: test
if: os = linux
env: NAME="nrf port build"
install:
- sudo apt-get install gcc-arm-none-eabi
@@ -179,7 +184,6 @@ jobs:

# bare-arm and minimal ports
- stage: test
if: os = linux
env: NAME="bare-arm and minimal ports build"
install:
- sudo apt-get install gcc-arm-none-eabi
@@ -196,7 +200,6 @@ jobs:

# cc3200 port
- stage: test
if: os = linux
env: NAME="cc3200 port build"
install:
- sudo apt-get install gcc-arm-none-eabi
@@ -207,7 +210,6 @@ jobs:

# samd port
- stage: test
if: os = linux
env: NAME="samd port build"
install:
- sudo apt-get install gcc-arm-none-eabi
@@ -218,7 +220,6 @@ jobs:

# teensy port
- stage: test
if: os = linux
env: NAME="teensy port build"
install:
- sudo apt-get install gcc-arm-none-eabi

0 comments on commit a2943f7

Please sign in to comment.
You can’t perform that action at this time.