-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
31 lines (24 loc) · 1.33 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
language: cpp
os: linux
dist: xenial
compiler: gcc #compiler used to build host compoments of toolchain
env:
- CMAKE_ARGS="-DLLVM_VERSION=tags/RELEASE_800/rc2/ -DLLVM_VER_DIR=8.0.0 -DBUILD_PLATFORM_RPI=ON -DBUILD_PLATFORM_SYSROOT=ON -DBUILD_MRAA=ON"
install:
- sudo apt-get install texinfo
- DEPS_DIR="${TRAVIS_BUILD_DIR}/deps"
- mkdir ${DEPS_DIR} && cd ${DEPS_DIR} && pwd
- git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
- export PATH=${DEPS_DIR}/depot_tools:$PATH
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then travis_retry wget --no-check-certificate https://cmake.org/files/v3.11/cmake-3.11.0-Linux-x86_64.tar.gz; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then echo "96d67e21f0983ebf0fffc5b106ec338c *cmake-3.11.0-Linux-x86_64.tar.gz" > cmake_md5.txt; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then md5sum -c cmake_md5.txt; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then tar -xvf cmake-3.11.0-Linux-x86_64.tar.gz > /dev/null; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then mv cmake-3.11.0-Linux-x86_64 cmake-install; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export PATH=${DEPS_DIR}/cmake-install:${DEPS_DIR}/cmake-install/bin:$PATH; fi
before_script:
- cd ${TRAVIS_BUILD_DIR}
- mkdir build && cd build
- cmake .. ${CMAKE_ARGS}
script:
- make -j`grep -c ^processor /proc/cpuinfo`