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:
+114
-58
@@ -1,18 +1,12 @@
|
|||||||
language: c
|
language: c
|
||||||
|
|
||||||
# Default test platform: Ubuntu Trusty with sudo support.
|
# Default environment: Container-based (sudo-less) Ubuntu Trusty 14.04.
|
||||||
os: linux
|
os: linux
|
||||||
dist: trusty
|
dist: trusty
|
||||||
sudo: required
|
sudo: false
|
||||||
|
|
||||||
# Default dependency installation step #1: install dependencies for linux.
|
# Default dependency installation step: nop intentionally.
|
||||||
# Other platforms can change this by redefining the 'before_install' stage in
|
# Jobs can add their own dependencies by redefinig the 'install' stage in the matrix below.
|
||||||
# the matrix below.
|
|
||||||
before_install: tools/apt-get-install-deps.sh
|
|
||||||
|
|
||||||
# Default dependency installation step #2: nop intentionally.
|
|
||||||
# Jobs can add their own dependencies on top of 'before_install' by redefinig
|
|
||||||
# the 'install' stage in the matrix below.
|
|
||||||
install: true
|
install: true
|
||||||
|
|
||||||
# Default job task: run tests as defined in the $OPT environment variable.
|
# Default job task: run tests as defined in the $OPT environment variable.
|
||||||
@@ -22,23 +16,88 @@ script: tools/run-tests.py $OPTS
|
|||||||
# All the job definitions in the matrix.
|
# All the job definitions in the matrix.
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- env: OPTS="--check-signed-off=travis --check-cppcheck --check-doxygen --check-vera --check-license --check-magic-strings --check-pylint"
|
- env:
|
||||||
|
- JOBNAME="Checks"
|
||||||
|
- OPTS="--check-signed-off=travis --check-cppcheck --check-doxygen --check-vera --check-license --check-magic-strings --check-pylint"
|
||||||
install: pip install --user pylint==1.6.5
|
install: pip install --user pylint==1.6.5
|
||||||
- env: OPTS="--jerry-debugger"
|
addons:
|
||||||
- env: OPTS="--quiet --jerry-tests --jerry-test-suite"
|
apt:
|
||||||
- env: OPTS="--quiet --jerry-tests --jerry-test-suite --toolchain=cmake/toolchain_linux_armv7l.cmake" TIMEOUT=300
|
packages: [doxygen, cppcheck, vera++]
|
||||||
install: tools/apt-get-install-qemu-arm.sh
|
|
||||||
- env: OPTS="--buildoption-test"
|
- env:
|
||||||
- env: OPTS="--quiet --jerry-tests --jerry-test-suite --buildoptions=--jerry-libc=off,--compile-flag=-m32,--cpointer-32bit=on"
|
- JOBNAME="Linux/x86-64 Build & Correctness Tests"
|
||||||
- env: OPTS="--unittests"
|
- OPTS="--quiet --jerry-tests --jerry-test-suite"
|
||||||
- env: OPTS="--unittests --buildoptions=--cmake-param=-DFEATURE_INIT_FINI=ON"
|
|
||||||
- env: OPTS="--test262"
|
- env:
|
||||||
install: sudo timedatectl set-timezone America/Los_Angeles
|
- JOBNAME="Linux/x86 (cpointer-32bit) Build & Correctness Tests"
|
||||||
- os: osx
|
- OPTS="--quiet --jerry-tests --jerry-test-suite --buildoptions=--jerry-libc=off,--compile-flag=-m32,--cpointer-32bit=on"
|
||||||
before_install: tools/brew-install-deps.sh
|
addons:
|
||||||
env: OPTS="--quiet --jerry-tests --jerry-test-suite --unittests"
|
apt:
|
||||||
- install: echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-
|
packages: [gcc-multilib]
|
||||||
env:
|
|
||||||
|
- env:
|
||||||
|
- JOBNAME="Linux/ARM Build & Correctness Tests"
|
||||||
|
- OPTS="--quiet --jerry-tests --jerry-test-suite --toolchain=cmake/toolchain_linux_armv7l.cmake"
|
||||||
|
- TIMEOUT=300
|
||||||
|
sudo: true # keep on sudo-enabled VM to allow qemu to register itself to binfmt_misc
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages: [gcc-arm-linux-gnueabihf, libc6-dev-armhf-cross, qemu-user-static]
|
||||||
|
|
||||||
|
- env:
|
||||||
|
- JOBNAME="OSX/x86-64 Build, Correctness & Unit Tests"
|
||||||
|
- OPTS="--quiet --jerry-tests --jerry-test-suite --unittests"
|
||||||
|
os: osx
|
||||||
|
install: tools/brew-install-deps.sh
|
||||||
|
|
||||||
|
- env:
|
||||||
|
- JOBNAME="Build Tests"
|
||||||
|
- OPTS="--buildoption-test"
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages: [gcc-multilib]
|
||||||
|
|
||||||
|
- env:
|
||||||
|
- JOBNAME="Unit Tests"
|
||||||
|
- OPTS="--unittests"
|
||||||
|
|
||||||
|
- env:
|
||||||
|
- JOBNAME="Unit Tests (INIT_FINI)"
|
||||||
|
- OPTS="--unittests --buildoptions=--cmake-param=-DFEATURE_INIT_FINI=ON"
|
||||||
|
|
||||||
|
- env:
|
||||||
|
- JOBNAME="Debugger Tests"
|
||||||
|
- OPTS="--jerry-debugger"
|
||||||
|
|
||||||
|
- env:
|
||||||
|
- JOBNAME="Conformance Tests"
|
||||||
|
- OPTS="--test262"
|
||||||
|
- TZ=America/Los_Angeles
|
||||||
|
|
||||||
|
- env:
|
||||||
|
- JOBNAME="ASAN Tests"
|
||||||
|
- OPTS="--quiet --jerry-tests --jerry-test-suite --skip-list=parser-oom.js --buildoptions=--compile-flag=-fsanitize=address,--compile-flag=-m32,--compile-flag=-fno-omit-frame-pointer,--compile-flag=-fno-common,--compile-flag=-O2,--debug,--jerry-libc=off,--static-link=off,--system-allocator=on,--linker-flag=-fuse-ld=gold"
|
||||||
|
- ASAN_OPTIONS=detect_stack_use_after_return=1:check_initialization_order=true:strict_init_order=true
|
||||||
|
- TIMEOUT=600
|
||||||
|
compiler: gcc-5
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
sources: ubuntu-toolchain-r-test
|
||||||
|
packages: [gcc-5, gcc-5-multilib]
|
||||||
|
|
||||||
|
- env:
|
||||||
|
- JOBNAME="UBSAN Tests"
|
||||||
|
- OPTS="--quiet --jerry-tests --jerry-test-suite --skip-list=parser-oom.js --buildoptions=--compile-flag=-fsanitize=undefined,--compile-flag=-m32,--compile-flag=-fno-omit-frame-pointer,--compile-flag=-fno-common,--debug,--jerry-libc=off,--static-link=off,--system-allocator=on,--linker-flag=-fuse-ld=gold"
|
||||||
|
- UBSAN_OPTIONS=print_stacktrace=1
|
||||||
|
- TIMEOUT=600
|
||||||
|
compiler: gcc-5
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
sources: ubuntu-toolchain-r-test
|
||||||
|
packages: [gcc-5, gcc-5-multilib]
|
||||||
|
|
||||||
|
- env:
|
||||||
|
- JOBNAME="Coverity Scan"
|
||||||
# Declaration of the encrypted COVERITY_SCAN_TOKEN, created via the
|
# Declaration of the encrypted COVERITY_SCAN_TOKEN, created via the
|
||||||
# "travis encrypt" command using the project repo's public key.
|
# "travis encrypt" command using the project repo's public key.
|
||||||
- secure: "V7BdXv3FCVkFGEfKfWto6I+Sytou1zTCGyn49xurkBfKNsG/3vbkXfsbK1m6lCZxmY7W/1odpfjixpAPZgy2L4FgPZK6/UyVvC8pIFjDOubcEniN48haleSvm/ZFPLDifxDL2+VVFtK1oRYPtDBzzSoUCcfwovgk+Wy+tSBnhnyRLqO/WaI6PqFof7ECYMTRlJVjioZARVP4YmkBruIPmGDdR/3EvwowlxfuiFoPheix61ug4x3tpTBW2qWgvFjDyCZXFz4pJrBQPTAIbyKMxHcBykJjl9eR+dWAOsvE1Uw48tFOJxjKDfUttVQUPsyKFllmcCVS0fDYB5pzZOmRUPxJmox1jt8J1FY85Ri1PGY0THBPM2H7to4Yf2418Y3539epbN8p+79dwaM7e2OiJ2owukbWI7PoNqIz5DV5zxpIKsOQfeWuNLJOgsBePEIU7lz133Si/2d5W/7If46B1d+hZRBJfSYksgDqDU6G/voZkPf0K5bKe2O2BxiIW1DYk4yQ1ecZAkqGjZ8jG3zYGMG3mSF4VyuU4UGFG1Pg8fw7Ap5zuHxSVY1H9dtu4T6JQG3aj/x1omlzfw48DjgkwxVhf7Xvl3yfR7pzydYheLX3MZYtcVo7rWnglZFZoUjWDK1StbmzsvPftvwWtoDTWlzo4xeSXhahSJvJyc4U8Wc="
|
- secure: "V7BdXv3FCVkFGEfKfWto6I+Sytou1zTCGyn49xurkBfKNsG/3vbkXfsbK1m6lCZxmY7W/1odpfjixpAPZgy2L4FgPZK6/UyVvC8pIFjDOubcEniN48haleSvm/ZFPLDifxDL2+VVFtK1oRYPtDBzzSoUCcfwovgk+Wy+tSBnhnyRLqO/WaI6PqFof7ECYMTRlJVjioZARVP4YmkBruIPmGDdR/3EvwowlxfuiFoPheix61ug4x3tpTBW2qWgvFjDyCZXFz4pJrBQPTAIbyKMxHcBykJjl9eR+dWAOsvE1Uw48tFOJxjKDfUttVQUPsyKFllmcCVS0fDYB5pzZOmRUPxJmox1jt8J1FY85Ri1PGY0THBPM2H7to4Yf2418Y3539epbN8p+79dwaM7e2OiJ2owukbWI7PoNqIz5DV5zxpIKsOQfeWuNLJOgsBePEIU7lz133Si/2d5W/7If46B1d+hZRBJfSYksgDqDU6G/voZkPf0K5bKe2O2BxiIW1DYk4yQ1ecZAkqGjZ8jG3zYGMG3mSF4VyuU4UGFG1Pg8fw7Ap5zuHxSVY1H9dtu4T6JQG3aj/x1omlzfw48DjgkwxVhf7Xvl3yfR7pzydYheLX3MZYtcVo7rWnglZFZoUjWDK1StbmzsvPftvwWtoDTWlzo4xeSXhahSJvJyc4U8Wc="
|
||||||
@@ -51,24 +110,7 @@ matrix:
|
|||||||
build_command: "tools/build.py --clean"
|
build_command: "tools/build.py --clean"
|
||||||
branch_pattern: master
|
branch_pattern: master
|
||||||
script: true # Changed to nop, Coverity Scan has already built the project by the time 'script' stage is reached.
|
script: true # Changed to nop, Coverity Scan has already built the project by the time 'script' stage is reached.
|
||||||
- compiler: gcc-5
|
|
||||||
addons:
|
|
||||||
apt:
|
|
||||||
sources:
|
|
||||||
- ubuntu-toolchain-r-test
|
|
||||||
packages:
|
|
||||||
- gcc-5
|
|
||||||
- gcc-5-multilib
|
|
||||||
env: OPTS="--quiet --jerry-tests --jerry-test-suite --skip-list=parser-oom.js --buildoptions=--compile-flag=-fsanitize=address,--compile-flag=-m32,--compile-flag=-fno-omit-frame-pointer,--compile-flag=-fno-common,--compile-flag=-O2,--debug,--jerry-libc=off,--static-link=off,--system-allocator=on,--linker-flag=-fuse-ld=gold" ASAN_OPTIONS=detect_stack_use_after_return=1:check_initialization_order=true:strict_init_order=true TIMEOUT=600
|
|
||||||
- compiler: gcc-5
|
|
||||||
addons:
|
|
||||||
apt:
|
|
||||||
sources:
|
|
||||||
- ubuntu-toolchain-r-test
|
|
||||||
packages:
|
|
||||||
- gcc-5
|
|
||||||
- gcc-5-multilib
|
|
||||||
env: OPTS="--quiet --jerry-tests --jerry-test-suite --skip-list=parser-oom.js --buildoptions=--compile-flag=-fsanitize=undefined,--compile-flag=-m32,--compile-flag=-fno-omit-frame-pointer,--compile-flag=-fno-common,--debug,--jerry-libc=off,--static-link=off,--system-allocator=on,--linker-flag=-fuse-ld=gold" UBSAN_OPTIONS=print_stacktrace=1 TIMEOUT=600
|
|
||||||
- env: JOBNAME="SonarQube"
|
- env: JOBNAME="SonarQube"
|
||||||
addons:
|
addons:
|
||||||
sonarcloud:
|
sonarcloud:
|
||||||
@@ -87,49 +129,63 @@ matrix:
|
|||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- '${HOME}/.sonar/cache'
|
- '${HOME}/.sonar/cache'
|
||||||
|
|
||||||
- env: JOBNAME="ESP8266 Build Test"
|
- env: JOBNAME="ESP8266 Build Test"
|
||||||
cache: ccache
|
cache: ccache
|
||||||
install: make -f ./targets/esp8266/Makefile.travis install
|
install: make -f ./targets/esp8266/Makefile.travis install-noapt
|
||||||
script: make -f ./targets/esp8266/Makefile.travis script
|
script: make -f ./targets/esp8266/Makefile.travis script
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages: [gperf, texinfo, wget]
|
||||||
|
|
||||||
- env: JOBNAME="Mbed/K64F Build Test"
|
- env: JOBNAME="Mbed/K64F Build Test"
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
sources:
|
sources:
|
||||||
- sourceline: ppa:team-gcc-arm-embedded/ppa
|
- sourceline: ppa:team-gcc-arm-embedded/ppa
|
||||||
packages:
|
packages: [gcc-arm-embedded, ninja-build, libffi-dev, libssl-dev]
|
||||||
- gcc-arm-embedded
|
install: make -f ./targets/mbed/Makefile.travis install-noapt
|
||||||
install: make -f ./targets/mbed/Makefile.travis install
|
|
||||||
script: make -f ./targets/mbed/Makefile.travis script
|
script: make -f ./targets/mbed/Makefile.travis script
|
||||||
|
|
||||||
- env: JOBNAME="Mbed OS 5/K64F Build Test"
|
- env: JOBNAME="Mbed OS 5/K64F Build Test"
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
sources:
|
sources:
|
||||||
- sourceline: ppa:team-gcc-arm-embedded/ppa
|
- sourceline: ppa:team-gcc-arm-embedded/ppa
|
||||||
packages:
|
packages: [gcc-arm-embedded]
|
||||||
- gcc-arm-embedded
|
|
||||||
install: make -f ./targets/mbedos5/Makefile.travis install
|
install: make -f ./targets/mbedos5/Makefile.travis install
|
||||||
script: make -f ./targets/mbedos5/Makefile.travis script
|
script: make -f ./targets/mbedos5/Makefile.travis script
|
||||||
|
|
||||||
- env: JOBNAME="NuttX/STM32F4 Build Test"
|
- env: JOBNAME="NuttX/STM32F4 Build Test"
|
||||||
install: make -f targets/nuttx-stm32f4/Makefile.travis install
|
install: make -f targets/nuttx-stm32f4/Makefile.travis install-noapt
|
||||||
script: make -f targets/nuttx-stm32f4/Makefile.travis script
|
script: make -f targets/nuttx-stm32f4/Makefile.travis script
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages: [gcc-arm-none-eabi, libnewlib-arm-none-eabi, gperf]
|
||||||
|
|
||||||
- env: JOBNAME="RIOT/STM32F4 Build Test"
|
- env: JOBNAME="RIOT/STM32F4 Build Test"
|
||||||
install: make -f ./targets/riot-stm32f4/Makefile.travis install
|
install: make -f ./targets/riot-stm32f4/Makefile.travis install-noapt
|
||||||
script: make -f ./targets/riot-stm32f4/Makefile.travis script
|
script: make -f ./targets/riot-stm32f4/Makefile.travis script
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages: [gcc-arm-none-eabi, libnewlib-arm-none-eabi]
|
||||||
|
|
||||||
- env: JOBNAME="Tizen RT/Artik053 Build Test"
|
- env: JOBNAME="Tizen RT/Artik053 Build Test"
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
sources:
|
sources:
|
||||||
- sourceline: ppa:team-gcc-arm-embedded/ppa
|
- sourceline: ppa:team-gcc-arm-embedded/ppa
|
||||||
packages:
|
packages: [gcc-arm-embedded]
|
||||||
- gcc-arm-embedded
|
|
||||||
install: make -f ./targets/tizenrt-artik053/Makefile.travis install
|
install: make -f ./targets/tizenrt-artik053/Makefile.travis install
|
||||||
script: make -f ./targets/tizenrt-artik053/Makefile.travis script
|
script: make -f ./targets/tizenrt-artik053/Makefile.travis script
|
||||||
|
|
||||||
- env: JOBNAME="Zephyr/Arduino 101 Build Test"
|
- env: JOBNAME="Zephyr/Arduino 101 Build Test"
|
||||||
install: make -f ./targets/zephyr/Makefile.travis install
|
install: make -f ./targets/zephyr/Makefile.travis install-noapt
|
||||||
script: make -f ./targets/zephyr/Makefile.travis script
|
script: make -f ./targets/zephyr/Makefile.travis script
|
||||||
allow_failures:
|
addons:
|
||||||
- env: JOBNAME="Mbed/K64F Build Test"
|
apt:
|
||||||
- env: JOBNAME="Zephyr/Arduino 101 Build Test"
|
packages: [gperf, dfu-util, device-tree-compiler, python3-ply, python3-pip]
|
||||||
|
|
||||||
fast_finish: true
|
fast_finish: true
|
||||||
|
|
||||||
# The channel name "chat.freenode.net#jerryscript"
|
# The channel name "chat.freenode.net#jerryscript"
|
||||||
|
|||||||
@@ -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
|
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.
|
# 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.
|
## Targets for building ESP8266 with JerryScript.
|
||||||
|
|||||||
@@ -74,6 +74,7 @@ js2c:
|
|||||||
|
|
||||||
yotta:
|
yotta:
|
||||||
cd targets/mbed; \
|
cd targets/mbed; \
|
||||||
|
export WCMAKE=`which cmake`; export PATH=`pwd`:$$PATH; \
|
||||||
yotta target $(YOTTA_TARGET); \
|
yotta target $(YOTTA_TARGET); \
|
||||||
yotta build
|
yotta build
|
||||||
|
|
||||||
|
|||||||
@@ -27,12 +27,12 @@ install-apt-get-deps:
|
|||||||
|
|
||||||
# Install yotta
|
# Install yotta
|
||||||
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 "pyOpenSSL<17.5" # fix for failures with pyOpenSSL 17.5
|
||||||
pip install --user yotta
|
pip install --user yotta
|
||||||
|
|
||||||
# Perform all the necessary (JerryScript-independent) installation steps.
|
# 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.
|
## 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
|
git clone https://bitbucket.org/nuttx/nuttx.git ../nuttx -b nuttx-7.22
|
||||||
|
|
||||||
# Perform all the necessary (JerryScript-independent) installation steps.
|
# 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.
|
## 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
|
git clone git://github.com/RIOT-OS/RIOT.git ../RIOT -b 2017.10
|
||||||
|
|
||||||
# Perform all the necessary (JerryScript-independent) installation steps.
|
# 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.
|
## Targets for building RIOT with JerryScript.
|
||||||
|
|||||||
@@ -29,17 +29,17 @@ install-apt-get-deps:
|
|||||||
install-zephyr-sdk:
|
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
|
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
|
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
|
cmake --version
|
||||||
|
|
||||||
# Fetch Zephyr Project repository and install python dependencies.
|
# 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
|
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
|
pip3 install --user -r ../zephyr/scripts/requirements.txt
|
||||||
|
|
||||||
# Perform all the necessary (JerryScript-independent) installation steps.
|
# 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.
|
## Targets for building Zephyr with JerryScript.
|
||||||
|
|||||||
Reference in New Issue
Block a user