-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
73 lines (70 loc) · 1.93 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
language: java
dist: xenial
sudo: true
before_install:
- sudo add-apt-repository http://packages.cor-lab.de/ubuntu/
- wget -q http://packages.cor-lab.de/keys/cor-lab.asc -O- | sudo apt-key add -
- sudo apt-get update -q
- sudo apt-get install spread
jdk:
- openjdk8
- openjdk10
- openjdk11
script:
mvn test site -B -DtrimStackTrace=false -Dtest.sleep=true
after_success:
- bash <(curl -s https://codecov.io/bash)
after_failure:
- cat rsb-java/target/tests-*.log
cache:
directories:
- $HOME/.m2
jobs:
include:
- stage: deploy
jdk: openjdk10
# erase default value
after_success:
script:
- mkdir -p deploy
- "mvn -B -DskipTests=true -DaltDeploymentRepository=snapshot-repo::default::file:deploy/rsb-java deploy"
- cd deploy
- tar -czf "../rsb-java-${TRAVIS_BRANCH}.tar.gz" rsb-java
- cd ..
- |
cat << EOF > bintray.json
{
"package": {
"name": "rsb-java",
"repo": "travis-artifacts",
"subject": "open-rsx",
"desc": "Travis artifact for branch ${TRAVIS_BRANCH}",
"vcs_url": "https://github.com/open-rsx/rsb-java.git",
"licenses": ["LGPL-3.0"]
},
"version": {
"name": "travis-${TRAVIS_BRANCH}",
"vcs_tag": "${TRAVIS_BRANCH}"
},
"files": [
{
"includePattern": "\\./(rsb-java-.*\\\\.tar\\\\.gz)",
"uploadPattern": "\$1",
"matrixParams": {
"override": 1
}
}
],
"publish": true
}
EOF
after_success:
deploy:
provider: bintray
file: "bintray.json"
user: "languitar"
key: '${BINTRAY_KEY}'
skip_cleanup: true
on:
repo: open-rsx/rsb-java
all_branches: true