-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
38 lines (37 loc) · 1.06 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
language: java
jdk:
- openjdk8
os:
- linux
sudo: required
before_install:
- chmod +x gradlew
- ./gradlew wrapper --gradle-version 4.8.1
before_deploy:
- cd ..
- git pull origin master
- git config --local user.name "PepperLola"
- git config --local user.email $GIT_EMAIL
- git tag -a $TRAVIS_BUILD_NUMBER -m "Automated beta build."
- git push https://[email protected]/PepperLola/playerinfo.git HEAD:master --follow-tags
deploy:
provider: releases
api_key: $GIT_TOKEN
skip_cleanup: true
file_glob: true
file: $TRAVIS_BUILD_DIR/build/libs/*
on:
repo: PepperLola/playerinfo
prerelease: true
if: tag IS blank
after_success:
- git clone --quiet --branch=gh-pages https://[email protected]/PepperLola/playerinfo.git gh-pages > /dev/null
- cd gh-pages
- git rm -rf ./javadoc
- cp -Rf $HOME/javadoc-latest ./javadoc
- git add -f .
- git commit -m "Latest javadoc on successful travis build $TRAVIS_BUILD_NUMBER auto-pushed to gh-pages"
- git push -fq origin gh-pages > /dev/null
script:
- chmod +x gradlew
- ./gradlew :test