forked from IntelRealSense/librealsense
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (40 loc) · 1.18 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
os:
- linux
- osx
language: cpp
sudo: required
dist: trusty
osx_image: xcode7
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test;
wget https://github.com/glfw/glfw/releases/download/3.1.1/glfw-3.1.1.zip;
sudo apt-get update;
fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew uninstall xctool;
brew install xctool --HEAD;
brew install homebrew/versions/glfw3;
brew install libusb;
fi
install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
sudo apt-get install -qq build-essential xorg-dev libglu1-mesa-dev libglew-dev libglm-dev;
sudo apt-get install -qq cmake;
sudo apt-get install -qq libusb-1.0-0-dev ;
cmake --version;
unzip glfw-3.1.1.zip;
cd glfw-3.1.1;
sudo cmake -G "Unix Makefiles" -DBUILD_SHARED_LIBS=ON;
sudo make;
sudo make install;
cd ..;
fi
script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
uname -a;
make;
fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
xctool -workspace librealsense.xc/librealsense.xcworkspace -scheme librealsense ONLY_ACTIVE_ARCH=NO;
fi