-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
144 lines (120 loc) · 3.92 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
os: linux
dist: bionic
jdk:
- openjdk11
language: python
python:
- "3.6"
before_install:
- set -e
notifications:
email:
on_success: change
on_failure: change
env:
- RELEASE=master
- RELEASE=master DO_IMPORT=1
# for marytts
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
install:
- hostname -I
- hostname -i
- sudo apt-get purge golang* || echo "No old golang packages to delete"
- sudo apt-get install python
- wget https://dl.google.com/go/go1.13.6.linux-amd64.tar.gz
- sudo tar -C /usr/local -xzf go1.13.6.linux-amd64.tar.gz
- export PATH=/usr/local/go/bin:$PATH
- export GOPATH=$HOME/go
- export GOROOT=/usr/local/go
- which go && go version && go env
- sudo apt-get install opus-tools
- sudo pip install --upgrade pip
- pip install -r requirements.txt
# command to run tests
script:
- set -e
- export basedir=`pwd`
# AHOTTS
- cd $basedir
- hostname -I
- hostname -i
- git clone https://github.com/Elhuyar/AhoTTS-eu-Wikispeech.git
- cd AhoTTS-eu-Wikispeech
- git checkout $RELEASE || echo "No such release for ahotts. Using master."
- sh script_compile_all_linux.sh && mkdir -p txt wav
- sh start_ahotts_wikispeech.sh &
- export ahotts_pid=$!
- echo "ahotts started with pid $ahotts_pid"
- sleep 20
- python ahotts_testcall.py "test call for ahotts"
# SYMBOLSET
- cd $basedir
- git clone https://github.com/stts-se/symbolset
- cd symbolset
- git checkout $RELEASE || echo "No such release for symbolset. Using master."
- cd server
- git clone https://github.com/stts-se/wikispeech-lexdata.git
- cd wikispeech-lexdata
- git checkout $RELEASE || echo "No such release for wikispeech-lexdata. Using master."
- cd ..
- bash setup.sh wikispeech-lexdata ss_files
- go run *.go -ss_files ss_files &
- export symbolset_pid=$!
- echo "symbolset server started with pid $symbolset_pid"
- sleep 2
# PRONLEX
- cd $basedir
- mkdir -p $GOPATH/src/github.com/stts-se && cd $GOPATH/src/github.com/stts-se/
- git clone https://github.com/stts-se/pronlex.git
- cd pronlex
- git checkout $RELEASE || echo "No such release for pronlex. Using master."
- go get ./...
- bash scripts/setup.sh -a /tmp/appdir -e sqlite
- |
if [ -v DO_IMPORT ]; then
bash scripts/import.sh -e sqlite -f wikispeech-lexdata -a /tmp/appdir -r $RELEASE
fi
- bash scripts/start_server.sh -a /tmp/appdir -e sqlite &
- export pronlex_pid=$!
- echo "pronlex started with pid $pronlex_pid"
- sleep 20
# MARYTTS
- cd $basedir
- git clone https://github.com/stts-se/marytts.git
- cd marytts
- git checkout $RELEASE || echo "No such release for marytts. Using master."
- ./gradlew check
- ./gradlew installDist --stacktrace
- cp stts_voices/voice-ar-nah-hsmm-5.2.jar build/install/marytts/lib/
- cp stts_voices/voice-dfki-spike-hsmm-5.1.jar build/install/marytts/lib/
- cp stts_voices/voice-stts_no_nst-hsmm-5.2.jar build/install/marytts/lib/
- cp stts_voices/voice-stts_sv_nst-hsmm-5.2-SNAPSHOT.jar build/install/marytts/lib/
# - ./gradlew assembleDist
- ./gradlew test
- ./gradlew run &
- export marytts_pid=$!
- echo "marytts started with pid $marytts_pid"
- sleep 20
# WIKISPEECH FULL
- cd $basedir
- |
if [ -v DO_IMPORT ]; then
python3 bin/wikispeech .travis/travis-full.conf &
export wikispeech_pid=$!
else
python3 bin/wikispeech .travis/travis-min.conf &
export wikispeech_pid=$!
fi
- echo "wikispeech started with pid $wikispeech_pid"
- sleep 20
# - sh .travis/exit_server_and_fail_if_not_running.sh wikispeech $wikispeech_pid
# - sh .travis/exit_server_and_fail_if_not_running.sh marytts $marytts_pid
# - sh .travis/exit_server_and_fail_if_not_running.sh pronlex $pronlex_pid
# - sh .travis/exit_server_and_fail_if_not_running.sh pronlex $symbolset_pid
# - sh .travis/exit_server_and_fail_if_not_running.sh ahotts $ahotts_pid