diff --git a/.travis.yml b/.travis.yml index 8b0b27d86..ad8bda712 100644 --- a/.travis.yml +++ b/.travis.yml @@ -135,6 +135,8 @@ matrix: sources: - sourceline: ppa:team-gcc-arm-embedded/ppa packages: [gcc-arm-embedded] + language: python # NOTE: only way to ensure python>=2.7.10 on Trusty image + python: 2.7 install: make -f ./targets/mbedos5/Makefile.travis install script: make -f ./targets/mbedos5/Makefile.travis script diff --git a/targets/mbedos5/Makefile.travis b/targets/mbedos5/Makefile.travis index ed77d2658..8a30b9ffd 100644 --- a/targets/mbedos5/Makefile.travis +++ b/targets/mbedos5/Makefile.travis @@ -23,17 +23,17 @@ all: # Deploy Mbed and install Mbed Python dependencies. install: - pip install --user mbed-cli + pip install mbed-cli cd targets/mbedos5 && mbed deploy - pip install --user mbed-host-tests==1.4.2 # FIXME: mbed-host-tests 1.4.4 requires pyocd>=0.14.0, which cannot be satisfied for whatever reason - pip install --user -r targets/mbedos5/mbed-os/requirements.txt + pip install intervaltree==2.1.0 # FIXME: workaround until chaimleib/intervaltree#77 is fixed + pip install -r targets/mbedos5/mbed-os/requirements.txt ## Targets for building Mbed OS 5 with JerryScript. # Build the firmware (Mbed OS 5 with JerryScript). script: - pip install --user -r targets/mbedos5/tools/requirements.txt + pip install -r targets/mbedos5/tools/requirements.txt # HACK: `EXTRA_SRC[_MOD]` are abused to pass `--library` to `mbed compile` in the `all` make target that builds an app # HACK: this is needed because the Mbed OS 5 target code does not contain any `main` function, so the `all` make target does not link # HACK: but the `library` make target does not build either because the launcher sources require `jerry-targetjs.h` that are explicitly not generated for libraries