-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
50 lines (44 loc) · 1.73 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
language: cpp
include: &toolchain_linux_cross
dist: trusty
sudo: required # for dpkg --add-architecture locking
# armhf toolchain
include: &toolchain_linux_armhf
<<: *toolchain_linux_cross
env:
- LABEL=armhf_linux
- CROSS_TOOLCHAIN=true
- ARCH=armhf
- NPM_ARCH=arm
- GNU_TRIPLET=arm-linux-gnueabihf
- GNU_MULTILIB_TRIPLET=arm-linux-gnueabihf
- GPP_COMPILER=arm-linux-gnueabihf-g++
- GCC_COMPILER=arm-linux-gnueabihf-gcc
matrix:
include:
- os: linux
<<: *toolchain_linux_armhf
notifications:
email: false
before_install:
- export CXX="${GPP_COMPILER}" CC="${GCC_COMPILER}";
- sudo rm -rf /etc/apt/sources.list.d/**;
- sudo rm /etc/apt/sources.list;
- echo "deb [arch=amd64,i386] http://archive.ubuntu.com/ubuntu xenial main universe multiverse restricted" | sudo tee /etc/apt/sources.list;
- echo "deb [arch=${ARCH}] http://ports.ubuntu.com/ubuntu-ports xenial main universe multiverse restricted" | sudo tee -a /etc/apt/sources.list;
- echo "deb-src http://archive.ubuntu.com/ubuntu xenial main universe multiverse restricted" | sudo tee -a /etc/apt/sources.list;
- sudo dpkg --add-architecture ${ARCH};
- sudo apt-get update -yq;
- sudo apt-get install -y gcc-${GNU_TRIPLET};
- sudo apt-get install -y g++-${GNU_TRIPLET};
- sudo apt-get install -y pkg-config-${GNU_TRIPLET};
- sudo apt-get install -y crossbuild-essential-${ARCH};
- sudo apt-get install -y g++-multilib-${GNU_MULTILIB_TRIPLET};
- sudo apt-get install -y gcc-multilib-${GNU_MULTILIB_TRIPLET};
- sudo apt-get install -y dpkg-dev;
- sudo apt-get install -y libgcc1;
- sudo apt-get install -y libgcc1:${ARCH};
- sudo apt-get install -y dpkg-cross;
- sudo apt-get install -y cmake
script:
cmake ./ && make