forked from grzegorzmazur/yacas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
36 lines (29 loc) · 1.43 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
language: cpp
os:
- linux
- osx
dist: trusty
sudo: required
osx_image: xcode7.3
before_install:
- if [ ${TRAVIS_OS_NAME} = "linux" ]; then sudo apt-get -qq update; fi
- if [ ${TRAVIS_OS_NAME} = "linux" ]; then sudo apt-get install -y libzmq3-dev libzmqpp-dev; fi
- if [ ${TRAVIS_OS_NAME} = "linux" ]; then sudo apt-get install -y qt5-default libqt5webkit5-dev libqt5svg5-dev libqt5printsupport5; fi
- if [ ${TRAVIS_OS_NAME} = "linux" ]; then sudo apt-get install -y libboost-date-time-dev libjsoncpp-dev openssl; fi
- if [ ${TRAVIS_OS_NAME} = "osx" ]; then brew update && brew tap caskroom/cask && brew cask install java && brew install ant && brew install qt55 && brew link --force qt55; fi
before_script:
- mkdir cmake_build && cd cmake_build
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then cmake -DENABLE_CYACAS_KERNEL=Off .. ; fi
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then unset CXX; unset CC; cmake -G Xcode -DCMAKE_PREFIX_PATH=`brew --prefix qt55` -DENABLE_CYACAS_KERNEL=Off .. ; fi
script:
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then make; fi
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then make test ; fi
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then xcodebuild -project yacas.xcodeproj -target ALL_BUILD; fi
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then xcodebuild -project yacas.xcodeproj -target RUN_TESTS; fi
- cd .. && ant && ant test
branches:
except:
- gh_pages
- vendor
- bignum_experiments
- coverity_scan