diff options
author | Damien George <damien.p.george@gmail.com> | 2019-06-24 12:05:17 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-06-25 14:55:10 +1000 |
commit | c60e0a09f0f9db84aee8fdf1de5f416a87cdf868 (patch) | |
tree | 31fd30cc216ce4df75e2f700d74d824a84707f7b | |
parent | 009b1f6559fa2a621dcd35916886385327e6abc1 (diff) |
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.
-rw-r--r-- | .travis.yml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index 4ec506905..e16c36058 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,6 +10,8 @@ cache: env: global: - MAKEOPTS="-j4" +git: + submodules: false # define the successive stages stages: @@ -30,6 +32,7 @@ jobs: - sudo apt-get install libnewlib-arm-none-eabi - arm-none-eabi-gcc --version script: + - git submodule update --init lib/lwip lib/mbedtls lib/stm32lib - make ${MAKEOPTS} -C mpy-cross - make ${MAKEOPTS} -C ports/stm32 - make ${MAKEOPTS} -C ports/stm32 BOARD=PYBV11 MICROPY_PY_WIZNET5K=5200 MICROPY_PY_CC3K=1 @@ -60,6 +63,7 @@ jobs: - gcc --version - python3 --version 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 coverage @@ -80,6 +84,7 @@ jobs: - stage: test 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 @@ -91,6 +96,7 @@ jobs: install: - sudo apt-get install gcc-multilib libffi-dev:i386 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 nanbox @@ -100,6 +106,7 @@ jobs: - stage: test env: NAME="unix stackless 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 CFLAGS_EXTRA="-DMICROPY_STACKLESS=1 -DMICROPY_STACKLESS_STRICT=1" @@ -122,6 +129,7 @@ jobs: - sudo apt-get install libnewlib-arm-none-eabi - arm-none-eabi-gcc --version script: + - git submodule update --init lib/nrfx - make ${MAKEOPTS} -C ports/nrf # bare-arm and minimal ports |