-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
43 lines (34 loc) · 1.23 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
language: cpp
# let linux be Ubuntu 14.04 Trusty
sudo: required
dist: trusty
compiler:
- clang
- gcc
os:
- linux
- osx
before_install:
- if [[ "$TRAVIS_OS_NAME" = "osx" ]];then brew update; fi
- if [[ "$TRAVIS_OS_NAME" = "osx" ]];then brew install pugixml; fi
before_script:
- echo "$TRAVIS_OS_NAME"
- if [[ "$TRAVIS_OS_NAME" = "linux" ]];then wget http://apertium.projectjj.com/apt/install-nightly.sh -O - | sudo bash; fi
- if [[ "$TRAVIS_OS_NAME" = "linux" ]];then sudo apt-get -f install -y hfst-ospell-dev; fi
- if [[ "$TRAVIS_OS_NAME" = "osx" ]];then wget http://apertium.projectjj.com/osx/install-nightly.sh -O - | sudo bash; fi
- ./autogen.sh
# on osx, nightly goes in /usr/local
env:
- LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/usr/local/lib" PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:/usr/local/share/pkgconfig:/usr/local/lib/pkgconfig" ACLOCAL_PATH="${ACLOCAL_PATH}:/usr/local/share/aclocal" PATH="${PATH}:/usr/local/bin"
# Trusty's default gcc doesn't have C++11
install:
- if [[ "$TRAVIS_OS_NAME" = "linux" && "$CXX" = "g++" ]]; then export CXX="g++-5" CC="gcc-5"; fi
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-5
- g++-5
- libstdc++-5-dev
- clang