forked from LanguageMachines/frog
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
155 lines (143 loc) · 3.86 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
145
146
147
148
149
150
151
152
153
154
155
--- # frog.yml
sudo: required
group: edge
dist: bionic
# whitelist
branches:
only:
- master
notifications:
irc:
channels:
- "irc.uvt.nl#gitlama"
template:
- "%{repository_slug}#%{build_number}-%{branch} : \
%{message} --> %{build_url}"
skip_join: true
language: cpp
matrix:
include:
- os: linux
compiler: g++
cache: ccache
env:
- SCAN=echo
- os: linux
compiler: clang++
cache: ccache
env:
- SCAN=scan-build
- OPENMPFLAG=--disable-openmp
- os: osx
osx_image: xcode11
compiler: clang++
cache:
directories:
- $HOME/Library/Caches/Homebrew
before_cache:
- brew cleanup
env:
- SCAN=echo
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
sudo apt-get update;
sudo apt-get install pkg-config autoconf-archive autotools-dev ccache;
sudo apt-get install cppcheck libicu-dev libxml2-dev libbz2-dev;
sudo apt-get install zlib1g-dev libtar-dev;
sudo apt-get install expect libexttextcat-dev;
fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update;
brew install pkg-config;
brew install autoconf-archive;
brew install telnet;
brew install libxml2;
brew install bzip2;
brew install zlib;
brew install libtar;
brew install cppcheck;
brew install ccache;
brew install libtextcat;
brew install icu4c;
brew install llvm;
export PATH="/usr/local/opt/llvm/bin:$PATH";
export LDFLAGS="-L/usr/local/opt/llvm/lib";
export CXXFLAGS="-I/usr/local/opt/llvm/include $CXXFLAGS";
fi
- export PATH="/usr/lib/ccache/bin/:/usr/local/opt/ccache/libexec/:$PATH"
- git clone --depth=1 --single-branch https://github.com/LanguageMachines/ticcutils
- cd ticcutils
- bash bootstrap.sh
- ./configure $OPENMPFLAG
- make
- sudo make install
- cd ..
- git clone --depth=1 --single-branch https://github.com/LanguageMachines/libfolia
- cd libfolia
- bash bootstrap.sh
- ./configure $OPENMPFLAG
- make
- sudo make install
- cd ..
- git clone --depth=1 --single-branch https://github.com/LanguageMachines/uctodata
- cd uctodata
- bash bootstrap.sh
- ./configure $OPENMPFLAG
- make
- sudo make install
- cd ..
- git clone --depth=1 --single-branch https://github.com/LanguageMachines/ucto
- cd ucto
- bash bootstrap.sh
- ./configure $OPENMPFLAG
- make
- sudo make install
- cd ..
- git clone --depth=1 --single-branch https://github.com/LanguageMachines/timbl
- cd timbl
- bash bootstrap.sh
- ./configure $OPENMPFLAG
- make
- sudo make install
- cd ..
- git clone --depth=1 --single-branch https://github.com/LanguageMachines/mbt
- cd mbt
- bash bootstrap.sh
- ./configure $OPENMPFLAG
- make
- sudo make install
- cd ..
- git clone --depth=1 --single-branch https://github.com/LanguageMachines/frogdata
- cd frogdata
- bash bootstrap.sh
- ./configure $OPENMPFLAG
- make
- sudo make install
- cd ..
install:
- bash bootstrap.sh
- ./configure $OPENMPFLAG
# - cat config.log
- cppcheck --enable=all --quiet --error-exitcode=0 .
- $SCAN --status-bugs make
- make
- sudo make install
script:
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
- make check
- git clone --depth=1 --single-branch https://github.com/LanguageMachines/frogtests.git;
- cd frogtests
- export frog_bin=/usr/local/bin
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
./testmac >&2 ;
else
./testall.sh >&2 ;
fi
after_failure:
- for file in *.diff; do echo DIFF in $file; cat $file; done
- diff issue71_e_2_out.xml issue71_e_2.out.ok.xml
- for file in *.log; do echo SERVER LOGS in $file; cat $file; done
# - for file in *.err; do
# echo ERRORS in $file;
# cat $file; cat $(echo $file| cut -f 1 -d '.').out;
# done