-
Notifications
You must be signed in to change notification settings - Fork 36
/
.travis.yml
27 lines (27 loc) · 1.04 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
dist: trusty
sudo: required
language: c
compiler: gcc
before_install:
- sudo apt-get update -qq
- sudo apt-get install cmake curl unzip pkg-config gcc-4.8
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 20
- sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 30
- sudo update-alternatives --set cc /usr/bin/gcc
install:
- sudo apt-get install -y python3-pip linux-headers-4.4.0-75-generic
- curl -L "https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-linux.zip" -o ninja-linux.zip
- sudo unzip ninja-linux.zip -d /usr/local/bin
- sudo chmod 755 /usr/local/bin/ninja
- sudo pip3 install meson==0.44.0
- curl -L "https://cmocka.org/files/1.1/cmocka-1.1.1.tar.xz" -o cmocka-1.1.1.tar.xz
- tar -xf cmocka-1.1.1.tar.xz
- pushd cmocka-1.1.1
- mkdir build
- cd build
- cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ..
- make
- sudo make install
- popd
- sudo cp /usr/src/linux-headers-4.4.0-75/include/uapi/linux/if_ether.h /usr/include/linux
script: ./travis.sh