-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot.travis.yml
More file actions
40 lines (34 loc) · 887 Bytes
/
dot.travis.yml
File metadata and controls
40 lines (34 loc) · 887 Bytes
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
language: java
# the following will skip the installation of dependencies.
install: true
script:
- gradle clean build
- tar -zcf hello_world_build.tar.gz build
- gradle dist --rerun-tasks
- 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
- git tag $GIT_TAG -a -m "Generated tag from TravisCI for build $TRAVIS_BUILD_NUMBER"
- git push -q https://$GITPERM@github.com/drlehr/java-hello-world-with-gradle --tags
- ls -R
deploy:
skip_cleanup: true
overwrite: true
file_glob: true
provider: releases
api_key:
secure: $GITPERM
file:
- "README.md"
- "build.gradle"
- ".travis.yml"
- README.md
- dist/
- hello_world_build.tar.gz
- *.gz
- *
on:
tags: false
all_branches: true