-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
137 lines (127 loc) · 3.12 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
sudo: required
dist: bionic
group: edge
# 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: gcc
env:
- SCAN=echo
- os: linux
compiler: clang++
env:
- SCAN=scan-build
- OPENMPFLAG=--disable-openmp
- os: osx
compiler: clang
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 cppcheck;
sudo apt-get install libicu-dev libxml2-dev libbz2-dev zlib1g-dev;
sudo apt-get install libtar-dev;
sudo apt-get install libexttextcat-dev;
fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update;
brew install pkg-config;
brew install autoconf-archive;
brew outdated || brew upgrade icu4c;
brew outdated || brew upgrade libxml2;
brew outdated || brew install bzip2;
brew outdated || brew install zlib;
brew install cppcheck;
brew install libtar;
brew install libtextcat;
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";
fi
- git clone https://github.com/LanguageMachines/ticcutils
- cd ticcutils
- bash bootstrap.sh
- ./configure $OPENMPFLAG
- make
- sudo make install
- cd ..
- git clone https://github.com/LanguageMachines/libfolia
- cd libfolia
- bash bootstrap.sh
- ./configure $OPENMPFLAG
- make
- sudo make install
- cd ..
- git clone https://github.com/LanguageMachines/uctodata
- cd uctodata
- bash bootstrap.sh
- ./configure $OPENMPFLAG
- make
- sudo make install
- cd ..
- git clone https://github.com/LanguageMachines/ucto
- cd ucto
- bash bootstrap.sh
- ./configure $OPENMPFLAG
- make
- sudo make install
- cd ..
- git clone https://github.com/LanguageMachines/timbl
- cd timbl
- bash bootstrap.sh
- ./configure $OPENMPFLAG
- make
- sudo make install
- cd ..
- git clone https://github.com/LanguageMachines/mbt
- cd mbt
- bash bootstrap.sh
- ./configure $OPENMPFLAG
- make
- sudo make install
- cd ..
- git clone https://github.com/LanguageMachines/mbtserver
- cd mbtserver
- bash bootstrap.sh
- ./configure $OPENMPFLAG
- make
- sudo make install
- cd ..
- git clone https://github.com/LanguageMachines/frogdata
- cd frogdata
- bash bootstrap.sh
- ./configure $OPENMPFLAG
- make
- sudo make install
- cd ..
- git clone https://github.com/LanguageMachines/frog
- cd frog
- bash bootstrap.sh
- ./configure $OPENMPFLAG
- make
- sudo make install
- cd ..
install:
- bash bootstrap.sh
- ./configure $OPENMPFLAG
- cppcheck --enable=all --quiet --error-exitcode=0 .
- $SCAN --status-bugs make
- make
- sudo make install
script:
- LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib && make check