forked from triplea-game/triplea
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
64 lines (54 loc) · 3.08 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
if: tag is blank
dist: xenial
sudo: false
language: java
jdk: openjdk11
install: skip
env:
global:
- REPORT_FAIL=".travis/shared/report-build-status FAILURE"
- DEPLOY_PRERELEASE_STAGE=".travis/stages/deploy/prerelease"
- DEPLOY_PROD_STAGE=".travis/stages/deploy/prod"
jobs:
include:
########################################################################
- stage: DeployPrerelease
name: "Ansible Deploy to Prerelease"
if: (branch = master) and (repo = 'triplea-game/triplea') and (type != 'pull_request')
language: python
python: "3.8"
addons: { apt: { packages: [ sshpass ] } }
install: [ pip install ansible ]
script: [ $DEPLOY_PRERELEASE_STAGE/deploy-to-prerelease-servers/run || $REPORT_FAIL "prerelease deployment" ]
- stage: DeployPrerelease
name: "Build Installer Downloads & Upload to Github Releases"
if: ((branch = master) or (branch =~ /^release\//)) and (repo = 'triplea-game/triplea') and (type != 'pull_request')
script: [ $DEPLOY_PRERELEASE_STAGE/push-to-github-releases/run || $REPORT_FAIL "build installers" ]
deploy:
on: { tags: false, repo: triplea-game/triplea, all_branches: true }
provider: releases
file_glob: true
file: build/artifacts/*
skip_cleanup: true
prerelease: true
api_key:
secure: nxaqYrkXLGL3W20/eCnf63DLjMrQAhEuW44jggh1/nI383goa+u6w0bBtWCxRdVzos7t4dpVfS6+kv6oIHacm9zVA+RYrqy5opzCJhq8lmXVVRijbALzUeiFif2HURMaKWj0ynRNVlAyBHzazPTLZVWywifpdSubSkuMWkl20cmuKu/Hg3c1EC9se3OYhhTHx3Hya7xSrctrDEYLsEBAUZzkKfscqRVqwwltS88CgIMtRISDpSBGrtH0t1uAH6NitTSguGgb+QEpqnELcRLymX2G1yzMA4Xr5c/L34MfbBKf8vIuG9t411xYuLoyKoUbroTWxSnPwlSy6PHz+QJ7UCXbDkATOGO3chxlKxglppvI/G3n2YP5Zf2dAaDlHblpvarh55i/4i4sKB2AbvvzkIHrQJwUgmLCbpN8/Vp9GWcGkd6i5U7F8tNInCs6ttX3oGvGOfYEXs02Ctyiea4LAqk4S7GZTuV2QXqxXglL4eRIwZ4UETiwgoAAtHma63Eq7+9t2ykMlk7zAK96FGwJrB97wa08aPuSxL94IYEBmn9Ht/vKXRiNQMvpnfp4rWQtL3cqbVyYAg5EjKb4PsBmnb91+RXtnWFOY1RpZGt8sPXYd+KZYzN1BXTFJEpaLLsIDN6r7nMcAvJDUmucaM+m7giPXz1ZBGAic3UBM1qMCgI=
########################################################################
- stage: DeployProd
name: "Push Map Descriptions to Website"
if: (branch = master) and (repo = 'triplea-game/triplea') and (type != 'pull_request')
addons: { apt: { packages: [ python3, python3-yaml ] } }
script: [ $DEPLOY_PROD_STAGE/update-maps-on-website/run || $REPORT_FAIL "push maps to website" ]
- stage: DeployProd
name: "Ansible Deploy to Prod2"
if: (branch = master) and (repo = 'triplea-game/triplea') and (type != 'pull_request')
language: python
python: "3.8"
addons: { apt: { packages: [ sshpass ] } }
install: [ pip install ansible ]
script: [ $DEPLOY_PROD_STAGE/deploy-prod2-servers/run || $REPORT_FAIL "prod2 deployment" ]
########################################################################
- stage: Finish
name: "Report Successful Build"
if: (branch = master) and (repo = 'triplea-game/triplea') and (type != 'pull_request')
script: [ ".travis/shared/report-build-status SUCCESS" ]