Browse Source

travis: Selectively fetch git submodules only when needed.

This saves time when building on Travis CI: unconditionally fetching all
submodules takes about 40 seconds, but not all are needed for any given
port, so only fetch as necessary.
pull/4715/head
Damien George 5 years ago
parent
commit
c60e0a09f0
  1. 8
      .travis.yml

8
.travis.yml

@ -10,6 +10,8 @@ cache:
env: env:
global: global:
- MAKEOPTS="-j4" - MAKEOPTS="-j4"
git:
submodules: false
# define the successive stages # define the successive stages
stages: stages:
@ -30,6 +32,7 @@ jobs:
- sudo apt-get install libnewlib-arm-none-eabi - sudo apt-get install libnewlib-arm-none-eabi
- arm-none-eabi-gcc --version - arm-none-eabi-gcc --version
script: script:
- git submodule update --init lib/lwip lib/mbedtls lib/stm32lib
- make ${MAKEOPTS} -C mpy-cross - make ${MAKEOPTS} -C mpy-cross
- make ${MAKEOPTS} -C ports/stm32 - make ${MAKEOPTS} -C ports/stm32
- make ${MAKEOPTS} -C ports/stm32 BOARD=PYBV11 MICROPY_PY_WIZNET5K=5200 MICROPY_PY_CC3K=1 - make ${MAKEOPTS} -C ports/stm32 BOARD=PYBV11 MICROPY_PY_WIZNET5K=5200 MICROPY_PY_CC3K=1
@ -60,6 +63,7 @@ jobs:
- gcc --version - gcc --version
- python3 --version - python3 --version
script: script:
- git submodule update --init lib/axtls lib/berkeley-db-1.xx lib/libffi
- make ${MAKEOPTS} -C mpy-cross - make ${MAKEOPTS} -C mpy-cross
- make ${MAKEOPTS} -C ports/unix deplibs - make ${MAKEOPTS} -C ports/unix deplibs
- make ${MAKEOPTS} -C ports/unix coverage - make ${MAKEOPTS} -C ports/unix coverage
@ -80,6 +84,7 @@ jobs:
- stage: test - stage: test
env: NAME="unix port build and tests" env: NAME="unix port build and tests"
script: script:
- git submodule update --init lib/axtls lib/berkeley-db-1.xx lib/libffi
- make ${MAKEOPTS} -C mpy-cross - make ${MAKEOPTS} -C mpy-cross
- make ${MAKEOPTS} -C ports/unix deplibs - make ${MAKEOPTS} -C ports/unix deplibs
- make ${MAKEOPTS} -C ports/unix - make ${MAKEOPTS} -C ports/unix
@ -91,6 +96,7 @@ jobs:
install: install:
- sudo apt-get install gcc-multilib libffi-dev:i386 - sudo apt-get install gcc-multilib libffi-dev:i386
script: script:
- git submodule update --init lib/axtls lib/berkeley-db-1.xx lib/libffi
- make ${MAKEOPTS} -C mpy-cross - make ${MAKEOPTS} -C mpy-cross
- make ${MAKEOPTS} -C ports/unix deplibs - make ${MAKEOPTS} -C ports/unix deplibs
- make ${MAKEOPTS} -C ports/unix nanbox - make ${MAKEOPTS} -C ports/unix nanbox
@ -100,6 +106,7 @@ jobs:
- stage: test - stage: test
env: NAME="unix stackless port build and tests" env: NAME="unix stackless port build and tests"
script: script:
- git submodule update --init lib/axtls lib/berkeley-db-1.xx lib/libffi
- make ${MAKEOPTS} -C mpy-cross - make ${MAKEOPTS} -C mpy-cross
- make ${MAKEOPTS} -C ports/unix deplibs - make ${MAKEOPTS} -C ports/unix deplibs
- make ${MAKEOPTS} -C ports/unix CFLAGS_EXTRA="-DMICROPY_STACKLESS=1 -DMICROPY_STACKLESS_STRICT=1" - make ${MAKEOPTS} -C ports/unix CFLAGS_EXTRA="-DMICROPY_STACKLESS=1 -DMICROPY_STACKLESS_STRICT=1"
@ -122,6 +129,7 @@ jobs:
- sudo apt-get install libnewlib-arm-none-eabi - sudo apt-get install libnewlib-arm-none-eabi
- arm-none-eabi-gcc --version - arm-none-eabi-gcc --version
script: script:
- git submodule update --init lib/nrfx
- make ${MAKEOPTS} -C ports/nrf - make ${MAKEOPTS} -C ports/nrf
# bare-arm and minimal ports # bare-arm and minimal ports

Loading…
Cancel
Save