This repository has been archived by the owner on Dec 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
73 lines (70 loc) · 1.99 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
language: cpp
jobs:
include:
# Disabled since OpenAL can't be built with clang 7 and libstdc++
# - 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
- libgl1-mesa-dev
- libxrandr-dev
- libxaw7-dev
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:
- set -e
- 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
- |
if [[ x"$CONAN_PASSWORD" != "x" && x"$CONAN_LOGIN_USERNAME" != "x" ]]; then
conan user -p $CONAN_PASSWORD -r worldforge $CONAN_LOGIN_USERNAME
else
echo "Could not find Artifactory password and login name"
exit 1
fi
- conan remove "libxdg-basedir/*" --force
- conan install ./libxdg-basedir -g deploy --build missing && conan create ./libxdg-basedir worldforge/stable -pr default
- conan remove "cegui/*" --force
- conan install ./cegui -g deploy --build missing && conan create ./cegui worldforge/stable -pr default
- conan remove "ogre/*" --force
- conan install ./ogre -g deploy --build missing && conan create ./ogre worldforge/stable -pr default
- conan upload "*" -r worldforge -c --all