forked from tanitall/foreman-apps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (36 loc) · 1.03 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
39
40
language: java
jdk:
- openjdk8
install: mvn install --settings .travis.settings.xml -DskipTests=true -Dassembly.skipAssembly=true -Dmaven.javadoc.skip=true -B -V -q
script: mvn verify --settings .travis.settings.xml -q
before_deploy:
- rm -rf build
- mkdir build
- cp -ra foreman-pickaxe/target/*.tar.bz2 build/.
- cp -ra foreman-pickaxe/target/*.tar.gz build/.
- cp -ra foreman-pickaxe/target/*.zip build/.
deploy:
- provider: script
script: mvn deploy --settings .travis.settings.xml -DskipTests=true -q
skip_cleanup: true
on:
tags: true
- provider: gcs
access_key_id: $GCS_ACCESS_KEY_ID
secret_access_key: $GCS_SECRET_ACCESS_KEY
bucket: "pickaxe-releases"
local_dir: "build"
skip_cleanup: true
on:
tags: true
- provider: releases
api_key: $GITHUB_TOKEN
file:
- "foreman-pickaxe/target/*.tar.bz2"
- "foreman-pickaxe/target/*.tar.gz"
- "foreman-pickaxe/target/*.zip"
file_glob: true
skip_cleanup: true
on:
tags: true
name: $TRAVIS_BRANCH