forked from boostorg/boost_install
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
71 lines (62 loc) · 1.93 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
# Copyright 2016-2018 Peter Dimov
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at http://boost.org/LICENSE_1_0.txt)
language: cpp
sudo: false
branches:
only:
- master
- develop
- /feature\/.*/
env:
matrix:
- BOGUS_JOB=true
matrix:
exclude:
- env: BOGUS_JOB=true
include:
- env: LIB=system
- env: LIB=filesystem
- env: LIB=thread
- env: LIB=random
- env: LIB=log
- env: LIB=python
- env: CHECK_DEPENDENCIES=1
install:
- BOOST_BRANCH=feature/cmake-config
- cd ..
- git clone -b $BOOST_BRANCH --depth 1 https://github.com/boostorg/boost.git boost-root
- cd boost-root
- git submodule update --init
- rm -rf tools/boost_install
- mkdir -p tools/boost_install
- cp -r $TRAVIS_BUILD_DIR/* tools/boost_install
- ./bootstrap.sh
- ./b2 tools/boostdep/build
script:
- dist/bin/boostdep --list-buildable-dependencies | diff -u tools/boost_install/boost-install-dependencies.jam -
install:
- BOOST_BRANCH=feature/cmake-config
- cd ..
- git clone -b $BOOST_BRANCH --depth 1 https://github.com/boostorg/boost.git boost-root
- cd boost-root
- git submodule update --init tools/build
- git submodule update --init libs/config
- git submodule update --init tools/boostdep
- git submodule update --init libs/headers
- mkdir -p tools/boost_install
- cp -r $TRAVIS_BUILD_DIR/* tools/boost_install
- git submodule update --init libs/$LIB
- python tools/boostdep/depinst/depinst.py $LIB
- ./bootstrap.sh
script:
- ./b2 --prefix=$HOME/.local --with-$LIB install
- cd tools/boost_install/test/$LIB
- mkdir __build__ && cd __build__
- cmake -DCMAKE_INSTALL_PREFIX=~/.local ..
- cmake --build .
- export LD_LIBRARY_PATH=$HOME/.local/lib:$LD_LIBRARY_PATH
- cmake --build . --target check
notifications:
email:
on_success: always