forked from PCGen/pcgen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (47 loc) · 1.73 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
# Run tests run on travis-ci after each commit and before each merge
language: java
dist: trusty
matrix:
include:
- os: linux
jdk: oraclejdk9
allow_failures:
- os: osx
osx_image: xcode9
script: ./gradlew clean build test compileSlowtest datatest pfinttest allReports buildDist buildNsis pcgenRelease
# Do not use itest, requires release notes
before_install:
- sudo apt-get update
- sudo apt-get install lib32z1 lib32ncurses5 nsis
- export PERL_MM_USE_DEFAULT=1
- chmod +x gradlew
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then sudo apt-get install scons mingw32 mingw32-binutils zlib1g-dev libcppunit-dev; fi
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then brew update; fi
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then brew install https://sourceforge.net/p/nsis/code/HEAD/tree/web-scripts/trunk/cppunit.rb?format=raw; fi
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then brew install scons mingw-w64 zlib; fi
install:
- wget -O /tmp/zlib.zip "https://downloads.sourceforge.net/project/libpng/zlib/1.2.8/zlib128-dll.zip?r=&ts=1403402496&use_mirror=hivelocity"
- mkdir /tmp/zlib
- unzip /tmp/zlib.zip -d /tmp/zlib
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
before_deploy:
# Build release files
- ./gradlew pcgenRelease
deploy:
provider: releases
#Replace this with a real token
api_key: "GITHUB OAUTH TOKEN"
file_glob: true
file: "build/release/*"
skip_cleanup: true
on:
#This make the deploy only happen when a tag is created.
tags: true
#Only on master
branch: master