forked from psi46/pxar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
24 lines (24 loc) · 923 Bytes
/
.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
language: cpp
compiler:
- clang
- gcc
before_install:
- echo $LANG
- echo $LC_ALL
- if [ $TRAVIS_OS_NAME == linux ]; then sudo apt-get update && sudo apt-get install -y libusb-1.0-0 libusb-1.0-0-dev libftdi1 libftdi-dev; fi
- if [ $TRAVIS_OS_NAME == osx ]; then brew update && brew install libusb libftdi homebrew/science/root; fi
before_script:
- if [ $TRAVIS_OS_NAME == linux ]; then sudo wget http://downloads.sourceforge.net/project/cernrootdebs/latest-recommended/root_5.34.07-1_amd64.deb && sudo dpkg --install root_5.34.07-1_amd64.deb && source /usr/local/bin/thisroot.sh; fi
- if [ $TRAVIS_OS_NAME == osx ]; then source $(brew --prefix root)/libexec/thisroot.sh; fi
script:
- mkdir build && cd build/
- if [ $TRAVIS_OS_NAME == linux ]; then cmake ..; fi
- if [ $TRAVIS_OS_NAME == osx ]; then cmake ..; fi
- make install
branches:
only:
- master
- production
os:
- linux
- osx