forked from claritylab/lucida
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (49 loc) · 1.46 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
53
54
55
56
language: cpp
compiler: gcc
cache: apt
env:
- WITH_SUITE=true WITH_CUDA=false WITH_APP=false
# - WITH_SUITE=true WITH_CUDA=true WITH_APP=false
# - WITH_SUITE=false WITH_CUDA=false WITH_APP=true
before_install:
- export NUM_THREADS=1
- export VER=0.1
- if $WITH_SUITE; then
sudo apt-get install -y python-software-properties;
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test;
sudo apt-get update;
sudo apt-get install -y gcc-4.8 g++-4.8;
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 50;
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 50;
git clone https://github.com/Itseez/opencv.git;
cd opencv;
git checkout 2.4.9;
mkdir build;
cd build;
cmake ..;
make -j$NUM_THREADS;
sudo make -j$NUM_THREADS install;
cd ../..;
fi
install:
- if $WITH_SUITE; then
travis_wait sudo -E ./travis-scripts/suite_deps.sh;
fi
- if $WITH_APP; then
cd sirius-application;
travis_wait sudo -E ./get-dependencies.sh;
./get-kaldi.sh;
cd ..;
fi
before_script:
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib:/usr/local/cuda/lib64:/usr/lib
- export PATH=/home/travis/miniconda/bin:$PATH
script:
- if $WITH_SUITE; then
cd sirius-suite;
make;
cd ..;
fi
- if $WITH_APP; then
cd sirius-application && ./compile-sirius-servers.sh && cd ..;
fi