-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
105 lines (96 loc) · 3.45 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
language: cpp
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-9
- g++-9
stages:
- build and test
- deploy binaries
# Deploy Teplates
_template_deploy : &template_deploy
script:
- mkdir travispackaging && cd travispackaging && cmake ..
- cmake --build . --target PACKAGE
- cd ..
deploy:
provider: releases
api_key:
secure: "ZHF5WR6ng4hYz9uhcmxE6BxpAVFrZMP5f8yUtC4nUmIorDvLn/GzplIHTHlF+Y3etEKoeCzSyMsd8kvkkFfoCmcHJySfxfsC9Y4dJxk+/M6WEQD3tV2/F3WnmZ9Cfiv1NsC6zMoQAi1XMLYtgKyXHfYVn25yfHdC+T5EG6VrTRbtoPS8JNWXdq/ibdhxN4t41mRRhu0cOcGeumqwtnPd5jiGMZYq59v9s2ED8Nl8vrED/xNy3b7GxlWOLJIB54QfKSH6eaL86n5oFJMgwtaIc/I4n+wSLcH2GbPFQllyTizWYRH0RQqfOGaYUKM2mCAX+J8++CFjBD0MpUnznTB2dCZDb+goehLeH5koV7aK00jvxyv22Qg3CPQ/xK89rlFxHYAllQwqCkxh++5sEekcLkfCZqswF3M0YihizRHLEIP0iPy67yzSv1CDN4mmw1DAzljlRN9AMBXph+ZzeY4hJZmaWzXJjSxTl0bvm6p4PLJXABJ7qwtJQS1rLXjbP7VL9Fgig0J14ky8NtbhF+sUTeZ4zaavzDcbKhcHtFY49sbm9cVHDeN4fMhHqXNfOMCbt/nNWYU8ZeU0p+RHcMyt9iT4DO3AsFP+6e5181MFNHaZyOULgvShziZJXQG2pgs+eIlib5bb0vWs/eZ7VNJV3UEKhO+1rvCQId5aKXOGBb0="
file_glob: true
file: packages/*
draft: true
cleanup: false
on:
repo: xNWP/xTGA
tags: true
jobs:
include:
# Linux 64-bit
- stage: build and test
name: Linux 64-bit
os: linux
install: &install_linux
- sudo unlink /usr/bin/gcc && sudo ln -s /usr/bin/gcc-9 /usr/bin/gcc
- sudo unlink /usr/bin/g++ && sudo ln -s /usr/bin/g++-9 /usr/bin/g++
- wget https://github.com/Kitware/CMake/releases/download/v3.15.0-rc3/cmake-3.15.0-rc3-Linux-x86_64.tar.gz
- tar -xf cmake-3.15.0-rc3-Linux-x86_64.tar.gz
- sudo ln -s ${TRAVIS_BUILD_DIR}/cmake-3.15.0-rc3-Linux-x86_64/bin/cmake /home/travis/bin/cmake
- sudo ln -s ${TRAVIS_BUILD_DIR}/cmake-3.15.0-rc3-Linux-x86_64/bin/ctest /home/travis/bin/ctest
env: &linux-64-toolchain
- TOOLCHAIN=""
script: &script_linux
- mkdir build && cd build
- cmake ${TOOLCHAIN} ..
- make all
- ctest --verbose
# Linux 32-bit
- stage: build and test
name: Linux 32-bit
os: linux
install: *install_linux
before_script: &before-script-linux32
- sudo apt-get install -y gcc-9-multilib
- sudo apt-get install -y g++-9-multilib
- sudo apt-get install -y linux-libc-dev:i386
script: *script_linux
env: &linux-32-toolchain
- TOOLCHAIN="x86-toolchain.cmake"
# Windows 64-bit
- stage: build and test
name: Windows 64-bit
os: windows
install: &install_windows
- choco upgrade cmake
env: &windows-64-toolchain
- ARCH=" Win64"
script: &script_windows
- mkdir build && cd build
- cmake -G "Visual Studio 15 2017${ARCH}" ..
- cmake --build .
- ctest --verbose
# Windows 32-bit
- stage: build and test
name: Windows 32-bit
os: windows
install: *install_windows
env: &windows-32-toolchain
- ARCH=""
script: *script_windows
# Windows Deploy
- stage: deploy binaries
if: tag IS present
name: Windows 32/64 Deploy
os: windows
install: *install_windows
<<: *template_deploy
# Linux Deploy
- stage: deploy binaries
if: tag IS present
name: Linux 32/64 Deploy
os: linux
install: *install_linux
before_script: *before-script-linux32
<<: *template_deploy