-
Notifications
You must be signed in to change notification settings - Fork 69
/
.travis.yml
47 lines (42 loc) · 2.54 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
# 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.7"
compiler:
- gcc
before_install:
# Install miniconda to avoid compiling scipy
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b
- export PATH=/home/travis/miniconda/bin:$PATH
- conda update --yes conda
install:
# TODO should we not use only from from openblas or just atlas?
- sudo apt-get update && sudo apt-get install -y build-essential libpng12-dev libfreetype6-dev libopenblas-dev libopenblas-base liblapack-dev gfortran git python python-dev python-pip libsqlite3-dev wget libatlas-base-dev zip &> /dev/null
- echo "/usr/lib/atlas-base" | sudo tee /etc/ld.so.conf.d/atlas-lib.conf && sudo ldconfig # Hack: solution from http://unix.stackexchange.com/questions/52703/using-atlas-from-scipy
- conda create --yes -q -n pyenv mkl python=2.7 numpy=1.9.1 scipy nose pyparsing pip flake8
- source activate pyenv
- (pip install -r alex-requirements.txt 2>&1 > /tmp/pip_log.log & PIP_PID=$! ; while [ "$(ps -p ${PIP_PID} | wc -l)" -eq "2" ]; do sleep 60; echo "pip is still running"; done;)
- echo "#####################"; echo "vvv PIP LOG vvv"; tail -n 100 /tmp/pip_log.log ; echo "#####################";
# Install pjsip.
- (git clone https://github.com/UFAL-DSG/pjsip.git && pushd pjsip && git checkout travis && ./configure CXXFLAGS=-fPIC CFLAGS=-fPIC LDFLAGS=-fPIC CPPFLAGS=-fPIC && make dep && make && sudo make install && cd pjsip-apps/src/python/ && pip install . && popd && python -c 'import pjsuaxt') &> /dev/null
# Unpack and install precomplied openfst, pykaldi and pyfst
- wget https://s3-eu-west-1.amazonaws.com/ufal-dsg/pykaldi/pykaldi-travis_2.7.tar.gz/pykaldi_Ubuntu_12.04_LTS.zip && unzip pykaldi_Ubuntu_12.04_LTS.zip && pushd pykaldi_Ubuntu_12.04_LTS && sudo cp -r openfst/lib/* /usr/local/lib && easy_install pyfst*.egg && easy_install pykaldi*.egg && sudo ldconfig && popd
- sudo apt-get install -y libsox-dev &> /dev/null
- easy_install pysox &> /dev/null
- pip install nose2 &> /dev/null
- echo "[gcc] " > ~/.theanorc
- echo "cxxflags = -march=x86-64" >> ~/.theanorc
script:
- python -c 'import kaldi'
- python -c 'import kaldi.decoders'
- python -c 'import pjsuaxt'
- python -c 'import alex.applications.vhub'
- python -c 'import fst'
- nose2 -v