-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
83 lines (78 loc) · 2.52 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
language: cpp
sudo: required
matrix:
include:
- os: linux
env: OS=Linux EVAL="CXX=g++-5" FLAGS="-m32" CONFIG=Debug
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['g++-5-multilib', 'lib32stdc++6', 'linux-libc-dev']
- os: linux
env: OS=Linux EVAL="CXX=g++-5" FLAGS="-m32" CONFIG=Release
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['g++-5-multilib', 'lib32stdc++6', 'linux-libc-dev']
- os: linux
env: OS=Linux EVAL="CXX=g++-5" FLAGS="-m64" CONFIG=Debug
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['g++-5']
- os: linux
env: OS=Linux EVAL="CXX=g++-5" FLAGS="-m64" CONFIG=Release
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['g++-5']
- os: linux
env: OS=Linux EVAL="CXX=clang++" FLAGS="-m32" CONFIG=Debug
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['g++-5-multilib', 'lib32stdc++6', 'linux-libc-dev']
- os: linux
env: OS=Linux EVAL="CXX=clang++" FLAGS="-m32" CONFIG=Release
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['g++-5-multilib', 'lib32stdc++6', 'linux-libc-dev']
- os: linux
env: OS=Linux EVAL="CXX=clang++" FLAGS="-m64" CONFIG=Debug
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['g++-5']
- os: linux
env: OS=Linux EVAL="CXX=clang++" FLAGS="-m64" CONFIG=Release
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['g++-5']
- os: osx
env: OS=MacOS EVAL="CXX=clang++" FLAGS="-m32" CONFIG=Debug
- os: osx
env: OS=MacOS EVAL="CXX=clang++" FLAGS="-m32" CONFIG=Release
- os: osx
env: OS=MacOS EVAL="CXX=clang++" FLAGS="-m64" CONFIG=Debug
- os: osx
env: OS=MacOS EVAL="CXX=clang++" FLAGS="-m64" CONFIG=Release
before_script:
- if [ "$OS" == "Linux" ]; then sudo ln -s /usr/include/asm-generic /usr/include/asm; fi
- eval "${EVAL}"
- $CXX -v
- cd ..
- git clone -q --branch=master https://github.com/SuperSodaSea/Corecat.git
- cd Corecat
- git checkout -fq master
- cp -r include ../Textcat
- cd ../Textcat
- cmake -H. -Bbuild -DCMAKE_CXX_COMPILER=$CXX -DCMAKE_CXX_FLAGS=$FLAGS -DCMAKE_BUILD_TYPE=$CONFIG
script:
- make -C build
after_success:
- ./build/XML_DOMReader data/test1.xml
- ./build/XML_DOMWriter
- ./build/XML_SAXReader data/test1.xml
- ./build/XML_SAXWriter