-
Notifications
You must be signed in to change notification settings - Fork 122
/
.travis.yml
50 lines (40 loc) · 1.39 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
47
48
49
50
language: cpp
branches:
only:
- master
sudo: required
dist: trusty
group: edge
os:
- linux
compiler:
- gcc
env:
- CROSSCOMPILE=native
addons:
apt:
packages:
- zlib1g-dev
- wget
- python-dev
matrix:
include:
- os: linux
compiler: gcc
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['g++-4.9','zlib1g-dev','wget','python-dev', 'python-pip']
env:
- CXXCOMPILER=g++-4.9
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install openfst ; fi
- if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then wget https://github.com/AdolfVonKleist/packages/raw/master/Ubuntu-14.04/debs/openfst_1.6.2_amd64-trusty.deb ; fi
- if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then sudo dpkg -i openfst_1.6.2_amd64-trusty.deb ; fi
- if [ ! -z "$CXXCOMPILER" ]; then export CXX="$CXXCOMPILER"; fi
install:
- pip install --user pybindgen
script:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ./configure --enable-python && make -j2 && ( ./phonetisaurus-g2pfst --help || echo ) && cd python && cp ../.libs/Phonetisaurus.so . && python setup.py build ; fi
- if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then ./configure --enable-python && make -j2 && ./phonetisaurus-g2pfst --help && cd python && cp ../.libs/Phonetisaurus.so . && python setup.py build ; fi