forked from saurabhshri/CCAligner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
84 lines (70 loc) · 2.09 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
language: cpp
matrix:
include:
- os: linux
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.6
- george-edison55-precise-backports # cmake 3.2.3 / doxygen 1.8.3
packages:
- cmake
- cmake-data
- g++-4.9
- gcc-4.9
- lcov
env:
- COMPILER=g++-4.9
after_success:
# Uploading report to CodeCov
- cd ${TRAVIS_BUILD_DIR}/src/build
- lcov --directory . --capture --output-file coverage.info
- lcov --remove coverage.info '/usr/*' --output-file coverage.info
- lcov --list coverage.info
- bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"
- os: osx
osx_image: xcode7.3
install:
- if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$CXX" = "g++" ]; then export CXX="g++-4.9" CC="gcc-4.9"; fi
# Install dependencies
- cd test
# cmuclmtk
- wget https://github.com/saurabhshri/mirror/raw/master/cmuclmtk-0.7.tar.gz
- tar xvpzf cmuclmtk-0.7.tar.gz
- cd cmuclmtk-0.7
- ./configure && make -j4
- sudo make install
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo ldconfig; fi
- cd ../
# g2p-seq2seq
- sudo pip install tensorflow==1.0.0
- wget https://github.com/saurabhshri/mirror/raw/master/g2p-seq2seq-master.zip
- unzip g2p-seq2seq-master.zip
- cd g2p-seq2seq-master/
- sudo python setup.py install
- cd ../
# copy models and dicts
- cp -rf ../install/model .
- cp -rf ../install/g2p-seq2seq-cmudict .
- cp ../install/quick_lm.pl .
script:
- cd ../src
- mkdir build
- cd build
# Enable coverage build for Linux only
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then cmake -Denable_coverage=ON ..; else cmake ..; fi
- make -j4
# Build demos
- cd ../../demo/ApproxAligner
- mkdir build
- cd build
- cmake .. && make -j4
- cd ../../VAD/
- mkdir build
- cd build
- cmake .. && make -j4
# start run tests
- cd ../../../test
- ../src/build/ccaligner_test