forked from OpenXRay/xray-16
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
100 lines (81 loc) · 3.16 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
# Based on https://github.com/ldionne/hana/blob/master/.travis.yml
dist: focal
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=x64 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 ]; then
sudo apt-get install -y libegl1-mesa-dev libgles2-mesa-dev libopenal-dev libtbb-dev libcrypto++-dev liblockfile-dev libfreeimage3 libfreeimage-dev libfreeimageplus-dev liblua5.1-0-dev libssl-dev libogg-dev libtheora-bin libtheora-dev libvorbis-dev liblzo2-dev libjpeg-dev libncurses5-dev libpcre3-dev libsdl2-2.0-0 libsdl2-dev libgl1 libgl1-mesa-dev libgl1-mesa-dev libgl-dev;
if [ $TRAVIS_CPU_ARCH == arm64 ]; then
sudo apt-get install -y snapd
sudo snap install cmake - --beta --classic
export PATH=/snap/cmake/current/bin:$PATH;
wget --no-check-certificate http://ftp.br.debian.org/debian/pool/main/g/glew/libglew2.1_2.1.0-4_arm64.deb;
wget --no-check-certificate http://ftp.br.debian.org/debian/pool/main/g/glew/libglew-dev_2.1.0-4_arm64.deb;
sudo dpkg -i *.deb;
else
sudo apt-get install -y cmake libglew2.1 libglew-dev;
fi
sudo apt-get -f -y install;
CFLAGS="-w" CXXFLAGS="-w" cmake .. -DCMAKE_BUILD_TYPE=$BUILD_CONFIGURATION;
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