-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
139 lines (126 loc) · 3.78 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
language: cpp
# https://docs.travis-ci.com/user/languages/cpp
# default
os: linux
dist: xenial
git:
depth: 1
submodules: false
jobs:
include:
# Test gcc-4.8: Build=Release
- env: GCC_VERSION=4.8 BUILD_TYPE=Release COMMLITE_EXE_STATIC=ON IS_UPDATE_CMAKE=TRUE
os: linux
arch: amd64
dist: trusty
addons:
apt:
packages:
- g++-4.8
sources:
- ubuntu-toolchain-r-test
# Test gcc-7: Build=Release
- env: GCC_VERSION=7 BUILD_TYPE=Release COMMLITE_EXE_STATIC=ON
os: linux
arch: amd64
dist: xenial
addons:
apt:
packages:
- g++-7
sources:
- ubuntu-toolchain-r-test
# Test clang-3.5: Build=Release
- env: CLANG_VERSION=3.5 BUILD_TYPE=Release COMMLITE_EXE_STATIC=ON
os: linux
arch: amd64
dist: xenial
addons:
apt:
packages:
- clang-3.5
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.5
# osx
- env: BUILD_TYPE=Release
os: osx
osx_image: xcode9.4
# Test clang-10.0: Build=Debug/Release
- env: CLANG_VERSION=10 BUILD_TYPE=Debug COMMLITE_EXE_STATIC=ON
os: linux
arch: amd64
dist: bionic
addons:
apt:
packages:
- clang-10
- lldb-10
- lld-10
sources:
- sourceline: "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-10 main"
key_url: "https://apt.llvm.org/llvm-snapshot.gpg.key"
# Test gcc-7: Build=Debug/Release
- env: GCC_VERSION=7 BUILD_TYPE=Debug COMMLITE_EXE_STATIC=ON IS_UPDATE_CMAKE=FALSE
os: linux
arch: s390x
dist: focal
addons:
apt:
packages:
- g++-7
sources:
- ubuntu-toolchain-r-test
- env: GCC_VERSION=7 BUILD_TYPE=Release COMMLITE_EXE_STATIC=ON IS_UPDATE_CMAKE=FALSE
os: linux
arch: ppc64le
dist: focal
addons:
apt:
packages:
- g++-7
sources:
- ubuntu-toolchain-r-test
# Test gcc-9: Build=Release
- env: GCC_VERSION=9 BUILD_TYPE=Release COMMLITE_EXE_STATIC=ON IS_UPDATE_CMAKE=FALSE
os: linux
arch: arm64
dist: focal
before_script:
- if [ -n "$GCC_VERSION" ]; then export CXX="g++-${GCC_VERSION}" CC="gcc-${GCC_VERSION}"; fi
- if [ -n "$CLANG_VERSION" ]; then export CXX="clang++-${CLANG_VERSION}" CC="clang-${CLANG_VERSION}"; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export CXX="clang++" CC="clang"; fi
- which $CXX
- which $CC
- $CXX --version
- cmake --version
- |
if [ "$IS_UPDATE_CMAKE" == "TRUE" ];then
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
if [[ "$TRAVIS_CPU_ARCH" == "amd64" ]]; then
wget https://github.com/Kitware/CMake/releases/download/v3.18.4/cmake-3.18.4-Linux-x86_64.sh
chmod +x cmake-3.18.4-Linux-x86_64.sh
sudo ./cmake-3.18.4-Linux-x86_64.sh --prefix=/usr/local --skip-license
export PATH=/usr/local/bin:$PATH
else
wget https://github.com/Kitware/CMake/releases/download/v3.18.4/cmake-3.18.4.tar.gz
tar -xzvf cmake-3.18.4.tar.gz
cd cmake-3.18.4
./configure --prefix=/usr/local
make -j8
sudo make install
export PATH=/usr/local/bin:$PATH
fi
fi
fi
- which cmake
- cmake --version
script:
- cd ${TRAVIS_BUILD_DIR}
- mkdir -p bin && cd bin
- |
cmake .. \
-DCMAKE_BUILD_TYPE=$BUILD_TYPE \
-DCOMMLITE_EXE_STATIC=$COMMLITE_EXE_STATIC
- cmake --build .
- file commlite