forked from taers232c/GAMADV-XTD3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
146 lines (139 loc) · 3.97 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
if: tag IS blank
os: linux
language: python
dist: focal
env:
global:
- BUILD_PYTHON_VERSION=3.10.2
- MIN_PYTHON_VERSION=3.10.2
- LINUX_BUILD_OPENSSL_VERSION=1.1.1m
- LINUX_MIN_OPENSSL_VERSION=1.1.1m
- WINDOWS_BUILD_OPENSSL_VERSION=1.1.1M
- WINDOWS_MIN_OPENSSL_VERSION=1.1.1M
- WINDOWS_LIB_SSL_VERSION="1_1"
- MACOS_BUILD_OPENSSL_VERSION=1.1.1m
- MACOS_MIN_OPENSSL_VERSION=1.1.1m
- MIN_OPENSSL_VERSION=$LINUX_MIN_OPENSSL_VERSION
- PATCHELF_VERSION=0.12
# PYINSTALLER_VERSION can be full commit hash or version like v4.20
- PYINSTALLER_VERSION=51df14045b92ecfe2b175bf1161b53d3b605d415
cache:
directories:
- $HOME/.cache/pip
- $HOME/python
- $HOME/ssl
jobs:
fast_finish: true
include:
- os: linux
name: "Linux 64-bit Focal"
dist: focal
language: shell
env:
- DIST_UPGRADE=true
- os: linux
name: "Linux 64-bit Bionic"
dist: bionic
language: shell
env:
- DIST_UPGRADE=true
- os: linux
name: "Linux 64-bit Xenial"
dist: xenial
language: shell
env:
- DIST_UPGRADE=false
- os: linux
name: "Linux 64-bit Trusty"
dist: trusty
language: shell
env:
- DIST_UPGRADE=true
- os: linux
name: "Linux 64-bit Precise"
dist: precise
language: shell
env:
- DIST_UPGRADE=false
- PATCHELF_VERSION=0.9
- os: linux
name: "Linux ARM64 Focal"
dist: focal
arch: arm64
language: shell
env:
- DIST_UPGRADE=false
filter_secrets: false
- os: linux
name: "Linux ARM64 Bionic"
dist: bionic
arch: arm64
language: shell
env:
- DIST_UPGRADE=false
filter_secrets: false
- os: linux
name: "Linux ARM64 Xenial"
dist: xenial
arch: arm64
language: shell
env:
- DIST_UPGRADE=true
filter_secrets: false
- os: osx
name: "MacOS"
language: generic
osx_image: xcode12.4
env:
- MIN_OPENSSL_VERSION=$MACOS_MIN_OPENSSL_VERSION
- os: windows
name: "Windows 64-bit"
language: shell
env:
- MIN_OPENSSL_VERSION=$WINDOWS_MIN_OPENSSL_VERSION
- os: windows
name: "Windows 32-bit"
language: shell
env:
- MIN_OPENSSL_VERSION=$WINDOWS_MIN_OPENSSL_VERSION
before_install:
- if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
export GAMOS="macos";
else
export GAMOS="${TRAVIS_OS_NAME}";
fi
- export SCRIPT_OS_NAME="${GAMOS}";
- if [ "${TRAVIS_JOB_NAME}" == "Windows 32-bit" ]; then
export PLATFORM="x86";
elif [ "${TRAVIS_CPU_ARCH}" == "amd64" ]; then
export PLATFORM="x86_64";
else
export PLATFORM="${TRAVIS_CPU_ARCH}";
fi
- source src/travis/${SCRIPT_OS_NAME}-before-install.sh
install:
- source src/travis/${SCRIPT_OS_NAME}-install.sh
script:
- $gam version extended
- $gam version | grep travis # travis should be part of the path (not /tmp or such)
# determine which Python version GAM is built with and ensure it's at least build version from above.
- vline=$($gam version | grep "Python "); python_line=($vline); this_python=${python_line[1]}; $python tools/a_atleast_b.py $this_python $MIN_PYTHON_VERSION
# determine which OpenSSL version GAM is built with and ensure it's at least build version from above.
- vline=$($gam version extended | grep "OpenSSL "); openssl_line=($vline); this_openssl=${openssl_line[1]}; $python tools/a_atleast_b.py $this_openssl $MIN_OPENSSL_VERSION
# Builds should default TLS 1.2 or 1.3 to Google
- $gam version extended | grep TLSv1\.[23]
# expect fail since server doesn't support our TLS version
- $gam config tls_min_version TLSv1_2 version extended location tls-v1-0.badssl.com:1010; [[ $? == 3 ]]
before_deploy:
- export TRAVIS_TAG="preview"
- unset LD_LIBRARY_PATH
deploy:
provider: releases
token: $GITHUB_TOKEN
file_glob: true
overwrite: true
file: gamadv-xtd3-$GAMVERSION-*
skip_cleanup: true
draft: true
on:
repo: taers232c/GAMADV-XTD3