forked from vchahun/pyfst
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
52 lines (45 loc) · 2.68 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
51
52
# http://about.travis-ci.org/docs/user/ci-environment/
# http://about.travis-ci.org/docs/user/build-configuration/
# Travis uses Ubuntu 64 12.04
branches:
only:
- master
language: python
python:
- "2.6"
- "2.7"
- "3.3"
compiler:
- gcc
# settings according http://blog.travis-ci.com/2012-12-18-travis-artifacts/#How-to-use%3F
# LZ owns the access keys
env:
global:
- "ARTIFACTS_AWS_REGION=us-east-1"
- "ARTIFACTS_S3_BUCKET=ufal-dsg"
- secure: "GbwEE98Yt7Mc4CA3zeN9iv1xFE3Npm4NkS4Gr4iDKve6NupD02OPiWvEjK9uZWvcz7JAe45TZhCu5V3s8SiWvCatKPnsCYjGuWhBGlHoJKNrFwn2FUxJfqlbLgzfKiD/g+Y3cHUvmoPMS5oR6qEx8O+gIALpteuGTzKpyVK5NR8="
- secure: "hy63a5jROex+g36ZJmA9PgwCv59EzsoCmZePSRX0cGuP6jrafQqLIIiof15hgrpXyseiqLPqvL1UJGL+o2uOfydUgbVUW93qwIXmuyL21dFPg5hOSY9cVcfSs9iWrRVq1q9Dx1kEvA6NwXNbW/G0EI7qsSSVQwN92eHsOjnHri4="
before_install:
# Update to g++ 4.8
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && sudo apt-get update -qq
- sudo apt-get install g++-4.8 && sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 90 && export CXX="g++-4.8" CC="gcc-4.8"
# Buildin openfst - You should build openfst yourself for you system - something like lines below!
# - wget http://openfst.cs.nyu.edu/twiki/pub/FST/FstDownload/openfst-1.3.4.tar.gz
# && tar xozf openfst-1.3.4.tar.gz
# && ln -s openfst-1.3.4 openfst
# && pushd openfst
# && ./configure --prefix=`pwd` --enable-static --with-pic --enable-shared --enable-far --enable-ngram-fsts
# && make install
# && [ -d lib64 ] && [ ! -d lib ] && ln -s lib64 lib
# ; popd
# USING PREBUILD OPENFST - DO NOT USE IT FOR YOUR SYSTEM!
- wget https://s3-eu-west-1.amazonaws.com/ufal-dsg/openfst/travis-openfst.tar.gz -O travis-openfst.tar.gz && tar zxvf travis-openfst.tar.gz && ln -s travis-openfst openfst
install:
- pip install -q cython pystache pyyaml
- export FST=`pwd`/openfst; LIBRARY_PATH=$FST/lib:$FST/lib/fst CPLUS_INCLUDE_PATH=$FST/include python setup.py build_ext --inplace
script:
- export FST=`pwd`/openfst; export LD_LIBRARY_PATH=$FST/lib:$FST/lib/fst:$LD_LIBRARY_PATH; LIBRARY_PATH=$FST/lib:$FST/lib/fst CPLUS_INCLUDE_PATH=$FST/include python setup.py nosetests
# after_success: # and this only on success
# - export FST=`pwd`/openfst; export LD_LIBRARY_PATH=$FST/lib:$FST/lib/fst:$LD_LIBRARY_PATH; LIBRARY_PATH=$FST/lib:$FST/lib/fst CPLUS_INCLUDE_PATH=$FST/include python setup.py bdist_egg && tar cvzf pyfst_dist_egg.tar.gz dist
# - travis-artifacts upload --path pyfst_dist_egg.tar.gz --target-path pyfst/pyfst_dist_egg.tar.gz
# - travis-artifacts upload --path pyfst_dist_egg.tar.gz --target-path pyfst/$TRAVIS_BUILD_ID/$TRAVIS_JOB_ID