RandomCoordinatesV2/.travis.yml

37 lines
1.0 KiB
YAML

before_install:
- export TARGET_VERSION="2.1.0"
- sudo find scripts/ -type d -exec chmod 777 {} +
- sudo find scripts/ -type f -exec chmod 777 {} +
- ./scripts/getDependencies.sh
- ./scripts/versioning.sh
- export VERSION_URL=$( cat versionurl)
- rm versionurl
notifications:
email: false
language: java
jdk:
- oraclejdk8
before_deploy:
- ./scripts/tagReleases.sh
deploy:
provider: releases
prerelease: true
skip_cleanup: true
name: "RandomCoords Build $TRAVIS_BUILD_NUMBER"
body: "### Generated by Travis-CI on $(date +'%F-%T')<br>Branch: [$TRAVIS_BRANCH](https://github.com/$TRAVIS_REPO_SLUG/tree/$TRAVIS_BRANCH)<br>Commitmessage: [$TRAVIS_COMMIT_MESSAGE](https://github.com/$TRAVIS_REPO_SLUG/commit/$TRAVIS_COMMIT)<br>Commit ID: $TRAVIS_COMMIT"
draft: false
api_key: $GITPERM
file:
- "target/RandomCoordinates-${TARGET_VERSION}.jar"
on:
tags: false
all_branches: true
repo: $TRAVIS_REPO_SLUG
branches:
only:
- master