blob: 75bbd0be72a32d5ef5a19a47feccceeebf299e50 (
plain) (
blame)
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
|
language: cpp
os: linux
dist: bionic
addons:
apt:
update: true
packages:
- cmake
- g++-multilib
sources:
- sourceline: 'deb https://apt.kitware.com/ubuntu/ bionic main'
key_url: 'https://apt.kitware.com/keys/kitware-archive-latest.asc'
jobs:
include:
- name: Run clang-format
language: shell
addons:
apt:
update: true
packages:
- clang-format-9
sources:
- sourceline: 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-9 main'
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
script: ./tools/clang-format.py --clang-format clang-format-9
- name: Simple CMake projects
script:
- >-
./cmake/build/build.py
--install "$HOME/install/simple"
--configuration Release
-- cmake/examples/simple
- "$HOME/install/simple/bin/foo"
- ./.ci/verify_arch.sh "$HOME/install/simple/bin/foo" x64
- >-
./cmake/build/build.py
--install "$HOME/install/static"
--configuration Debug
-- cmake/examples/static
-D "CMAKE_TOOLCHAIN_FILE=$TRAVIS_BUILD_DIR/cmake/toolchains/gcc-x86.cmake"
- "$HOME/install/static/bin/foo"
- ./.ci/verify_arch.sh "$HOME/install/static/bin/foo" x86
- >-
./cmake/build/build.py
--install "$HOME/install/dynamic"
--configuration RelWithDebInfo
-- cmake/examples/dynamic
- LD_LIBRARY_PATH="$HOME/install/dynamic/lib" "$HOME/install/dynamic/bin/foo"
- ./.ci/verify_arch.sh "$HOME/install/dynamic/bin/foo" x64
- name: Boost 1.58
script:
- ./boost/build/build.py download 1.58.0
- >-
./boost/build/build.py build
--configuration Debug
--platform x86
--link static
-- ./boost_1_58_0
--with-filesystem --with-program_options
- bash -o pipefail -c 'find boost_1_58_0/stage -type f | sort'
- >-
./cmake/build/build.py
--install "$HOME/install/boost_1_58_0"
--configuration Debug
-- cmake/examples/boost
-D "CMAKE_TOOLCHAIN_FILE=$TRAVIS_BUILD_DIR/cmake/toolchains/gcc-x86.cmake"
-D "BOOST_ROOT=$TRAVIS_BUILD_DIR/boost_1_58_0"
-D "BOOST_LIBRARYDIR=$TRAVIS_BUILD_DIR/boost_1_58_0/stage/x86/Debug/lib"
- "$HOME/install/boost_1_58_0/bin/foo"
- ./.ci/verify_arch.sh "$HOME/install/boost_1_58_0/bin/foo" x86
- name: Boost 1.72
script:
- ./boost/build/build.py download --cache . 1.72.0
- >-
./boost/build/build.py build
--platform x86 x64
--link shared
-- ./boost_1_72_0
--with-filesystem --with-program_options
- bash -o pipefail -c 'find boost_1_72_0/stage -type f | sort'
- >-
./cmake/build/build.py
--install "$HOME/install/boost_1_72_0"
--configuration Release
-- cmake/examples/boost
-D "BOOST_ROOT=$TRAVIS_BUILD_DIR/boost_1_72_0"
-D "BOOST_LIBRARYDIR=$TRAVIS_BUILD_DIR/boost_1_72_0/stage/x64/Release/lib"
-D Boost_USE_STATIC_LIBS=OFF
- >-
LD_LIBRARY_PATH="$TRAVIS_BUILD_DIR/boost_1_72_0/stage/x64/Release/lib"
"$HOME/install/boost_1_72_0/bin/foo"
- ./.ci/verify_arch.sh "$HOME/install/boost_1_72_0/bin/foo" x64
- name: Boost 1.65
script:
- ./boost/build/ci/travis.py --link static -- --with-filesystem --with-program_options
- bash -o pipefail -c 'find "$HOME/boost_1_65_0/stage" -type f | sort'
- >-
TRAVIS_BUILD_DIR="$TRAVIS_BUILD_DIR/cmake/examples/boost"
./cmake/build/ci/travis.py
--install "$HOME/install/boost_1_65_0"
--
-D BOOST_ROOT="$HOME/boost_1_65_0"
-D BOOST_LIBRARYDIR="$HOME/boost_1_65_0/stage/x64/Release/lib"
- "$HOME/install/boost_1_65_0/bin/foo"
- ./.ci/verify_arch.sh "$HOME/install/boost_1_65_0/bin/foo" x64
env:
travis_boost_version: 1.65.0
configuration: MinSizeRel
platform: x64
|