Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 15 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,39 @@
dist: xenial

language: java
install: true

matrix:
include:
- jdk: oraclejdk9

script:
- git config --global push.default simple
- export GIT_TAG=$TRAVIS_BRANCH.$TRAVIS_BUILD_NUMBER
- gradle clean build
- gradle dist
- tar -zcf hello_world_test_reports.tar.gz build/reports
- tar -zcf hello_world_executable_distributions.tar.gz build/distributions
- ls -R


before_deploy:
- git config --global user.email "builds@travis-ci.com"
- git config --global user.name "Travis CI"
- export GIT_TAG=$TRAVIS_BRANCH.$TRAVIS_BUILD_NUMBER
- echo "Just generated GIT_TAG"
- echo $GIT_TAG
- echo "Just generated GIT_TAG for $TRAVIS_BRANCH.$TRAVIS_BUILD_NUMBER" >> $TRAVIS_BUILD_DIR/build.txt
- git tag $GIT_TAG -a -m "Generated tag from TravisCI for build $TRAVIS_BUILD_NUMBER"
- git push -q https://$GITPERM@github.com/drlehr/Java_Gradle_Hello_World --tags
- ls -R
- git push -q https://$GITPERM@github.com/CS3398-Bolians-Booleans/Java_Gradle_Hello_World --tags


deploy:
provider: releases
file_glob: true
api_key:
secure: $GITPERM
file:
- README.md
- hello_world_test_reports.tar.gz
- hello_world_executable_distributions.tar.gz
skip_cleanup: true
skip_cleanup: true
on:
tags: false

all_branches: true
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-bin.zip