Move (almost all) Travis CI jobs to container-based infrastructure (#2333)
Container-based VMs promise significantly faster boot times. More or less related changes: - Added a JOBNAME to all jobs. - Added `install-noapt` target to several Makefile.travis files to avoid `sudo apt-get install ...` steps. Those installations are now handled by the apt addon of Travis. The `install` targets are kept anyway to keep the makefiles self-contained. - Removed a legacy workaround from the Coverity Scan job as it isn't necessary anymore to fiddle with the cerificates of scan.coverity.com. - Fixed the Mbed and the Zephyr jobs. JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
This commit is contained in:
@@ -41,7 +41,8 @@ install-espressif-sdk:
|
||||
wget https://github.com/esp8266/esp8266-wiki/raw/master/libs/libhal.a -O ../ESP8266_SDK/lib/libhal.a
|
||||
|
||||
# Perform all the necessary (JerryScript-independent) installation steps.
|
||||
install: install-apt-get-deps install-xtensa-kx106-gcc install-espressif-sdk
|
||||
install-noapt: install-xtensa-kx106-gcc install-espressif-sdk
|
||||
install: install-apt-get-deps install-noapt
|
||||
|
||||
|
||||
## Targets for building ESP8266 with JerryScript.
|
||||
|
||||
@@ -74,6 +74,7 @@ js2c:
|
||||
|
||||
yotta:
|
||||
cd targets/mbed; \
|
||||
export WCMAKE=`which cmake`; export PATH=`pwd`:$$PATH; \
|
||||
yotta target $(YOTTA_TARGET); \
|
||||
yotta build
|
||||
|
||||
|
||||
@@ -27,12 +27,12 @@ install-apt-get-deps:
|
||||
|
||||
# Install yotta
|
||||
install-yotta:
|
||||
pyenv global 2.7.13 # force the python version to a newer one
|
||||
pip install --user "pyOpenSSL<17.5" # fix for failures with pyOpenSSL 17.5
|
||||
pip install --user yotta
|
||||
|
||||
# Perform all the necessary (JerryScript-independent) installation steps.
|
||||
install: install-apt-get-deps install-yotta
|
||||
install-noapt: install-yotta
|
||||
install: install-apt-get-deps install-noapt
|
||||
|
||||
|
||||
## Targets for building Mbed with JerryScript.
|
||||
|
||||
Executable
+22
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Copyright JS Foundation and other contributors, http://js.foundation
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# HACK:
|
||||
# Wrapping cmake to ensure that yotta-driven cmake (3.6+) accepts
|
||||
# arm-none-eabi-gcc as working compiler.
|
||||
# WCMAKE variable must be set to the full path of the wrapped cmake.
|
||||
# Related yotta issue: https://github.com/ARMmbed/yotta/issues/783
|
||||
$WCMAKE -DCMAKE_C_COMPILER_WORKS=TRUE $@
|
||||
@@ -43,7 +43,8 @@ install-clone-nuttx:
|
||||
git clone https://bitbucket.org/nuttx/nuttx.git ../nuttx -b nuttx-7.22
|
||||
|
||||
# Perform all the necessary (JerryScript-independent) installation steps.
|
||||
install: install-apt-get-deps install-kconfig install-clone-nuttx
|
||||
install-noapt: install-kconfig install-clone-nuttx
|
||||
install: install-apt-get-deps install-noapt
|
||||
|
||||
|
||||
## Targets for building NuttX with JerryScript.
|
||||
|
||||
@@ -30,7 +30,8 @@ install-clone-riot:
|
||||
git clone git://github.com/RIOT-OS/RIOT.git ../RIOT -b 2017.10
|
||||
|
||||
# Perform all the necessary (JerryScript-independent) installation steps.
|
||||
install: install-apt-get-deps install-clone-riot
|
||||
install-noapt: install-clone-riot
|
||||
install: install-apt-get-deps install-noapt
|
||||
|
||||
|
||||
## Targets for building RIOT with JerryScript.
|
||||
|
||||
@@ -29,17 +29,17 @@ install-apt-get-deps:
|
||||
install-zephyr-sdk:
|
||||
wget https://github.com/zephyrproject-rtos/meta-zephyr-sdk/releases/download/0.9.2/zephyr-sdk-0.9.2-setup.run -O ../zephyr-sdk-0.9.2-setup.run
|
||||
sh ../zephyr-sdk-0.9.2-setup.run -- -y -d $(CURDIR)/../zephyr-sdk-0.9.2
|
||||
wget https://cmake.org/files/v3.8/cmake-3.8.2-Linux-x86_64.sh
|
||||
sudo sh cmake-3.8.2-Linux-x86_64.sh --prefix=/usr/local --exclude-subdir
|
||||
cmake --version
|
||||
|
||||
# Fetch Zephyr Project repository and install python dependencies.
|
||||
install-zephyr: install-apt-get-deps
|
||||
install-zephyr:
|
||||
git clone https://github.com/zephyrproject-rtos/zephyr.git ../zephyr -b v1.10.0
|
||||
pip3 install --user -U setuptools
|
||||
pip3 install --user -r ../zephyr/scripts/requirements.txt
|
||||
|
||||
# Perform all the necessary (JerryScript-independent) installation steps.
|
||||
install: install-zephyr-sdk install-zephyr
|
||||
install-noapt: install-zephyr-sdk install-zephyr
|
||||
install: install-apt-get-deps install-noapt
|
||||
|
||||
|
||||
## Targets for building Zephyr with JerryScript.
|
||||
|
||||
Reference in New Issue
Block a user