forked from GAM-team/got-your-back
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
200 lines (192 loc) · 6.48 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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
if: tag IS blank
group: edge
env:
global:
- BUILD_PYTHON_VERSION=3.8.6
- MIN_PYTHON_VERSION=3.8.6
- BUILD_OPENSSL_VERSION=1.1.1h
- MIN_OPENSSL_VERSION=1.1.1h
- PATCHELF_VERSION=0.11
- PYINSTALLER_COMMIT=1e571ae1a302709583667f41fbc2508b9a79a05f
cache:
directories:
- $HOME/.cache/pip
- $HOME/python
- $HOME/ssl
matrix:
fast_finish: true
allow_failures:
- python: pypy3
include:
- os: linux
name: "Linux Ubuntu Focal x86_64"
dist: focal
language: bash
env:
- ARCH=x86_64
- VMTYPE=build
- os: linux
name: "Linux Ubuntu Bionic x86_64"
dist: bionic
language: bash
env:
- ARCH=x86_64
- VMTYPE=build
- os: linux
name: "Linux Ubuntu Bionic arm64"
dist: bionic
arch: arm64
language: bash
filter_secrets: false
env:
- ARCH=arm64
- VMTYPE=build
- os: linux
name: "Linux Ubuntu Xenial x86_64"
dist: xenial
language: bash
env:
- ARCH=x86_64
- VMTYPE=build
- os: linux
name: "Linux Ubuntu Xenial arm64"
dist: xenial
arch: arm64
language: bash
filter_secrets: false
env:
- ARCH=arm64
- VMTYPE=build
- os: linux
name: "Python 3.6 Source Testing"
dist: bionic
language: python
python: 3.6
env:
- ARCH=x86_64
- VMTYPE=test
- os: linux
name: "Python 3.7 Source Testing"
dist: bionic
language: python
python: 3.7
env:
- ARCH=x86_64
- VMTYPE=test
- os: linux
name: "Python nightly Source Testing"
dist: bionic
language: python
python: nightly
env:
- ARCH=x86_64
- VMTYPE=test
- os: linux
name: "PyPy Source Testing"
dist: xenial
language: python
python: pypy3
env:
- ARCH=x86_64
- VMTYPE=test
- os: osx
name: "MacOS 10.13"
language: generic
osx_image: xcode10.1
env:
- ARCH=x86_64
- VMTYPE=build
- os: osx
name: "MacOS 10.14"
language: generic
osx_image: xcode11.3
env:
- ARCH=x86_64
- VMTYPE=build
- os: osx
name: "MacOS 10.15"
language: generic
osx_image: xcode11.4
env:
- ARCH=x86_64
- VMTYPE=build
- os: windows
name: "Windows 64-bit"
language: shell
filter_secrets: false
env:
- ARCH=x86_64
- CINST_ARGS=""
- WIX_ARCH=x64
- VMTYPE=build
- os: windows
name: "Windows 32-bit"
language: shell
filter_secrets: false
env:
- CINST_ARGS=--forcex86
- ARCH=x86
- WIX_ARCH=x86
- VMTYPE=build
before_install:
- 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 travis/$TRAVIS_OS_NAME-before-install.sh
- export jid="$(cut -d'.' -f2 <<<"$TRAVIS_JOB_NUMBER")"
- export gyb_user="[email protected]"
- export gyb_group="[email protected]"
- openssl aes-256-cbc -K $encrypted_6c3a5fee0b9c_key -iv $encrypted_6c3a5fee0b9c_iv -in travis/credentials.tar.enc -out travis/credentials.tar -d
install:
- source travis/$TRAVIS_OS_NAME-install.sh
script:
- tar xvf travis/credentials.tar -C $gybpath
- echo "This job will use $gyb_user"
- $gyb --version
- if [ "$VMTYPE" == "build" ]; then $gyb --version | grep "Python ${BUILD_PYTHON_VERSION//./\\.}"; fi # we should be using latest Python
- if [ "$VMTYPE" == "build" ]; then $gyb --version | grep "OpenSSL ${BUILD_OPENSSL_VERSION//./\\.}"; fi # we should be using latest OpenSSL
- if [ "$VMTYPE" == "build" ]; then $gyb --version | grep TLSv1\.[23]; fi # we should be using TLS 1.2 or 1.3
- $gyb --version | grep travis # travis should be part of path
- $gyb --action check-service-account --email $gyb_user
- $gyb --action purge --email $gyb_user
- $gyb --action purge-labels --email $gyb_user
- $gyb --action restore --local-folder travis/samples/gyb-format --email $gyb_user
- $gyb --action restore --local-folder travis/samples/gyb-format --email $gyb_user
- $gyb --action restore --local-folder travis/samples/gyb-format --email $gyb_user --service-account --noresume
- $gyb --action restore-group --local-folder travis/samples/gyb-format --email $gyb_group --use-admin $gyb_user
- $gyb --action restore-group --local-folder travis/samples/gyb-format --email $gyb_group --use-admin $gyb_user
- $gyb --action restore-group --local-folder travis/samples/gyb-format --email $gyb_group --use-admin $gyb_user --service-account --noresume
- $gyb --action restore-group --local-folder travis/samples/gyb-format --email $gyb_group --use-admin $gyb_user --service-account
- $gyb --action restore-mbox --local-folder travis/samples/historic-public-mbox --email $gyb_user
- $gyb --action restore-mbox --local-folder travis/samples/historic-public-mbox --email $gyb_user --service-account --noresume
- $gyb --action restore-mbox --local-folder travis/samples/google-takeout --email $gyb_user
- $gyb --action restore-mbox --local-folder travis/samples/vault-export-mbox --email $gyb_user
- $gyb --action count --email $gyb_user
- $gyb --action count --email $gyb_user --service-account
- $gyb --action quota --email $gyb_user
- $gyb --action quota --email $gyb_user --service-account
- $gyb --action estimate --email $gyb_user
- $gyb --action estimate --email $gyb_user --service-account
- $gyb --action print-labels --email $gyb_user
- $gyb --action print-labels --email $gyb_user --service-account
- $gyb --action backup --email $gyb_user
- $gyb --action backup --email $gyb_user --service-account --local-folder sa-backup
before_deploy:
- export TRAVIS_TAG="preview"
- unset LD_LIBRARY_PATH
deploy:
provider: releases
draft: true
file_glob: true
overwrite: true
skip_cleanup: true
api_key:
secure: QFIqvSfIVtk6AUOfBXXHlSJh7vA09fBpg09A3F7URYXd5baAshVVnKEh3fiRftQccgCAn7H4npjRfo7uxWDr3lD1l7KbvD6LbwjSFeF1X1gD1+d6q7V8umGMgWowQEZnbbYeNxoPwEs0y/0MWyAGsWO/HD6z96PcqhYLsBUVVRsw9KUt5d5m92xTFzLWyoyE29x6dRg8kRoYbxHKaOBpzLkZiADWF3OawuSa/nhxji6uKN846gutfsaWRC/+v9mz7Z2zjAbSmo/J34cloEbSCCsDRjBNuOTptnrkxaA/g/xW/IQIMuNMzZkcDAsUYArK53u3ib4nJaOcxn7L+QmADp9Cp7puxZPKuYuMeEZOqmZ9L/F2U5BE+3vQnlbVB9aNP1NGQmwGkMqkSx0bbSch+ar0v+lOILPv3rnOZstTkzOcRuf3I+uPeCb9hL4oX69XuF9FeMl2H+Js2JhR52R54OjGJhwfZsSD1QbvjtZih3a5k+dPS2qCRnn8xzLX8wOVGqWLJpxBdE3gXMEexEtWx2h0m0uW+qyls0+RuywNCnukGygkCL3WDLHt3t9TyxbsBGvtlusV+wPVanUnVfFptvn8K2RY5fpVoWUmmGd6pjH9vMag0kfsHUVYmHPcC1nE0isBuzYpH8W0Hfnk78LqfxVHwhzMHVLo2OhhIre0gY4=
file: gyb-$GYBVERSION-*
on:
repo: jay0lee/got-your-back
condition: $VMTYPE = build