-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
70 lines (67 loc) · 1.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
language: cpp
jobs:
include:
- os: linux
dist: bionic
compiler: clang
- os: linux
dist: bionic
compiler: gcc
- os: linux
dist: focal
compiler: clang
- os: linux
dist: focal
compiler: gcc
- os: osx
osx_image: xcode10.2
compiler: clang
addons:
apt:
packages:
- ccache
- python3-pip
- doxygen
- graphviz
homebrew:
packages:
- xz
- ccache
- python3
env:
global:
- CONAN_V2_MODE=1
- CONAN_REVISIONS_ENABLED=1
- CONAN_SCM_TO_CONANDATA=1
cache:
- pip
- ccache
- directories:
- $HOME/Library/Caches/Homebrew
before_install:
- sudo pip3 install --upgrade pip wheel setuptools jinja2
- sudo pip3 install --upgrade conan
- conan --version
- conan user
- conan remote add worldforge https://artifactory.ogenvik.org/artifactory/api/conan/conan
script:
- mkdir build && cd build
- conan profile new default --detect
- |
if [[ "$TRAVIS_OS_NAME" != "osx" && "$CXX" == "clang++" ]]; then
echo "Setting libc to use C++11 features"
conan profile update settings.compiler.libcxx=libstdc++11 default
fi
- conan install ../tools/conan -pr default --build=missing
- cmake -DBUILD_SHARED_LIBS=OFF .. || travis_terminate 1
- make || travis_terminate 1
- make check || travis_terminate 1
# - if [ "$TRAVIS_OS_NAME" != "osx" -a "$CC" == "gcc" ]; then make dox; fi
- |
if [[ x"$CONAN_PASSWORD" != "x" && x"$CONAN_LOGIN_USERNAME" != "x" ]]; then
echo "Creating and uploading Conan artifacts"
conan user -p $CONAN_PASSWORD -r worldforge $CONAN_LOGIN_USERNAME
conan remove -f libwfut/*
conan create ../tools/conan worldforge/testing -pr default --build outdated
conan upload "*" -r worldforge -c --all
fi