forked from FreeCol/freecol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (32 loc) · 1.57 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
language: java
jdk:
- openjdk12
env:
- DSTAMP=$(date +%F)
addons:
apt:
packages:
- ant-optional
before_install:
- if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_EVENT_TYPE" == "cron" ]]; then .travis/merge-sourceforge.sh; fi
- if [[ "$TRAVIS_BRANCH" == "slim" && "$TRAVIS_EVENT_TYPE" == "cron" ]]; then .travis/merge-slim.sh; fi
- if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_EVENT_TYPE" == "cron" ]]; then .travis/deploy-sourceforge-merge.sh; fi
- if [[ "$TRAVIS_BRANCH" == "slim" && "$TRAVIS_EVENT_TYPE" == "cron" ]]; then .travis/deploy-slim-merge.sh; fi
script:
- ant testci
before_deploy:
- ant nightly-release
- ls -l dist/releases
deploy:
provider: releases
skip_cleanup: true
tag_name: "nightly-$DSTAMP"
prerelease: true
name: "Nightly Release: $DSTAMP"
api_key:
secure: 27nIysTc9XqIKbwyevG1XvDXwl9N7TL5PihRpyrteMAePfWOQgjNUQe2vmc2KCt/SJc6sxt48KpnlfFIv7IIPn1fccl3SvC4mxlaiOAhdMTWMaf6mACOuIsqMFhmBqW4ukD3rxVh78oATnYaS1OLq3bJoucQhXg57QmacW+gRvKbI/jO7ltqDVMGY+5EQzcHYYj7fUrbpGhSUN/rtSUDlPkrreVl2trTzavwQlN8vBNOdTX4PXhOztNlCBepveRVAC6mJTVpyvvz9jfLtVM224CJF2TMn/j1cwEIln/DF94uqdKvpkCc6kgduVWPJHEPdfi0QjgdrO+kPzAfPnXZrgVSaiVAnUBQ1XYOthwUpxyOwLU/u5g6aZ7ix7Hg9MiBgJWJ4+4zqkdi78+MEimFN3Ky9BGb3t8MbO98LsX34W48j1j1wxJWx4OC8dSQiBb3bVJaDWZo+kORjsd0qVgWuGD4R9PL1snuRxGHezrq0KZe2Wa0JKqtrXYDrXxKYSlo3CXwzjM4O6+t0ERjrsrXt+Ns3CaZB9w1GHvB2/qVr+SNfOU0MxeSgUgIMzEBVjJeL093C/4JR8JbBcLaxei9vOHt5iubDvSveMO4hTuY62jPCixmmvLBGw7DqRxa8wA6HR5ejJoI2eazK1NNh8Fxsn3Q4iwyau3758cGpGhB3Ng=
file_glob: true
file: "dist/releases/*"
on:
repo: FreeCol/freecol
branch: slim