-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
34 lines (33 loc) · 890 Bytes
/
.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
language: java
sudo: required
cache:
directories:
- ~/.gradle
- ~/.m2
- $HOME/.m2
- $HOME/.gradle/
env:
global:
- GH_PROJECT_NAME=mind-sport
- GIT_AUTHOR_NAME=TravisCI
- GIT_AUTHOR_EMAIL=noreply@travis-ci.org
- CI_HOME=`pwd`
- GRADLE_USER_HOME=`pwd`/.gradle
before_script:
- chmod +x gradlew
script:
- gradle buildPlugin
- echo "Post Build"
- cd $CI_HOME/build/distributions && pwd && ls -la
- echo "The file which is going to be uploaded is!"
- ls $CI_HOME/build/distributions/
before_deploy:
# Set up git user name and tag this commit
- git config --local user.name $GIT_AUTHOR_NAME
- git config --local user.email $GIT_AUTHOR_EMAIL
- git tag "$(date +'%Y%m%d%H%M%S')-$(git log --format=%h -1)"
deploy:
provider: releases
api_key: $GITHUB_OAUTH_TOKEN
skip_cleanup: true
file: $CI_HOME/build/distributions/mind-sport-1.1.4-RELEASE.zip