forked from gunslingermod/GunsXRay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
116 lines (97 loc) · 4.35 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
# Based on https://github.com/ldionne/hana/blob/master/.travis.yml
dist: xenial
cache: ccache
language: cpp
#branches:
# only:
# - linux
# - xd_dev
# - "/^v\\d+\\./"
os:
- linux
matrix:
include:
- arch: arm64
env: C_COMPILER=gcc-8 CXX_COMPILER=g++-8 TARGET_CPU=x64 BUILD_CONFIGURATION=Release
addons: &gcc8
apt:
sources:
- sourceline: 'ppa:ubuntu-toolchain-r/test'
packages:
- g++-8
# - arch: arm64
# env: C_COMPILER=gcc-8 CXX_COMPILER=g++-8 TARGET_CPU=x64 BUILD_CONFIGURATION=Debug
# addons: *gcc8
- arch: amd64
env: C_COMPILER=gcc-8 CXX_COMPILER=g++-8 TARGET_CPU=x64 BUILD_CONFIGURATION=Release
addons: *gcc8
- arch: amd64
env: C_COMPILER=gcc-8 CXX_COMPILER=g++-8 TARGET_CPU=x86 BUILD_CONFIGURATION=Release
addons: *gcc8
- arch: amd64
env: C_COMPILER=gcc-8 CXX_COMPILER=g++-8 TARGET_CPU=x64 BUILD_CONFIGURATION=Debug
addons: *gcc8
- arch: amd64
env: C_COMPILER=gcc-8 CXX_COMPILER=g++-8 TARGET_CPU=x86 BUILD_CONFIGURATION=Debug
addons: *gcc8
# - env: C_COMPILER=clang-5.0 CXX_COMPILER=clang++-5.0 TARGET_CPU=x64 BUILD_CONFIGURATION=Release
# addons: &clang50
# apt:
# sources:
# - llvm-toolchain-trusty-5.0
# packages:
# - clang-5.0
# - env: C_COMPILER=clang-5.0 CXX_COMPILER=clang++-5.0 TARGET_CPU=x84 BUILD_CONFIGURATION=Release
# addons: *clang50
# - env: C_COMPILER=clang-6.0 CXX_COMPILER=clang++-6.0 TARGET_CPU=x64 BUILD_CONFIGURATION=Release
# addons: &clang60
# apt:
# sources:
# - llvm-toolchain-trusty-6.0
# packages:
# - clang-6.0
# - env: C_COMPILER=clang-6.0 CXX_COMPILER=clang++-6.0 TARGET_CPU=x84 BUILD_CONFIGURATION=Release
# addons: *clang60
install:
- export CC=${C_COMPILER}
- export CXX=${CXX_COMPILER}
- ${CXX} --version
before_script:
- export core_count=$(nproc || echo 4) && echo core_count = $core_count
- git submodule deinit Externals/cryptopp
- mkdir bin && cd bin
- if [ $TARGET_CPU == x64 ] && [ $TRAVIS_CPU_ARCH = amd64 ]; then
wget http://launchpadlibrarian.net/297657749/libsdl2-2.0-0_2.0.5+dfsg1-1ubuntu1_amd64.deb;
wget http://launchpadlibrarian.net/297657747/libsdl2-dev_2.0.5+dfsg1-1ubuntu1_amd64.deb;
fi
- if [ $TARGET_CPU == x64 ] && [ $TRAVIS_CPU_ARCH = arm64 ]; then
wget https://launchpadlibrarian.net/297658410/libsdl2-2.0-0_2.0.5+dfsg1-1ubuntu1_arm64.deb;
wget https://launchpadlibrarian.net/297658409/libsdl2-dev_2.0.5+dfsg1-1ubuntu1_arm64.deb;
fi
- if [ $TARGET_CPU == x64 ]; then
sudo apt-get install -y libglew-dev libegl1-mesa-dev libgles2-mesa-dev libopenal-dev libtbb-dev libcrypto++-dev liblockfile-dev libfreeimage-dev libfreeimageplus-dev;
sudo apt-get install -y cmake liblua5.1-0-dev libssl-dev libogg-dev libtheora-dev libvorbis-dev liblzo2-dev libjpeg-dev libncurses5-dev;
sudo dpkg -i *.deb;
sudo apt-get -f -y install;
CFLAGS="-w" CXXFLAGS="-w" cmake .. -DCMAKE_BUILD_TYPE=$BUILD_CONFIGURATION;
fi
- if [ $TARGET_CPU == x86 ]; then
sudo dpkg --add-architecture i386 && sudo apt-get -qq update && sudo apt-get install -y gcc-multilib g++-8-multilib libpulse-dev:i386 libglib2.0-dev:i386;
sudo apt-get install -y libglew-dev:i386 libegl1-mesa-dev:i386 libgles2-mesa-dev:i386 libopenal-dev:i386 libtbb-dev:i386 libcrypto++-dev:i386 liblockfile-dev:i386 libfreeimage-dev:i386 libfreeimageplus-dev:i386;
sudo apt-get install -y cmake liblua5.1-0-dev:i386 libssl-dev:i386 libogg-dev:i386 libtheora-dev:i386 libvorbis-dev:i386 liblzo2-dev:i386 libjpeg-dev:i386 libncurses5-dev:i386;
wget http://launchpadlibrarian.net/297657459/libsdl2-2.0-0_2.0.5+dfsg1-1ubuntu1_i386.deb;
wget http://launchpadlibrarian.net/297657456/libsdl2-dev_2.0.5+dfsg1-1ubuntu1_i386.deb;
sudo dpkg -i *.deb;
sudo apt-get -f -y install;
CFLAGS="-m32 -w" CXXFLAGS="-m32 -w" cmake .. -DCMAKE_BUILD_TYPE=$BUILD_CONFIGURATION -DCPACK_DEBIAN_PACKAGE_ARCHITECTURE=i386 -DCMAKE_ASM_FLAGS=-m32;
fi
script:
- if [ $TRAVIS_OS_NAME == linux ]; then make -j $core_count package && file openxray_1.6.02_*.deb; fi
deploy:
provider: releases
api_key:
secure: kGVniXDR926BfVcA97y25BzALbijvgboBsozZzY9yc8RPz15Q4YG474h7vl14/J1
file: ./*.deb
draft: true
notifications:
email: false