-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
40 lines (35 loc) · 1.1 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
cache:
directories:
- "$HOME/.m2"
jobs:
include:
- stage: test
jdk: openjdk8
before_install:
- curl -L -o hapl-obs.jar $HAPL_OBS_URL
- mvn install:install-file -Dfile=hapl-obs.jar -Dpackaging=jar -DgroupId=workshop.haplotype -DartifactId=hapl-obs -Dversion=$HAPL_OBS_VERSION
- jdk: openjdk11
before_install:
- curl -L -o hapl-obs.jar $HAPL_OBS_URL
- mvn install:install-file -Dfile=hapl-obs.jar -Dpackaging=jar -DgroupId=workshop.haplotype -DartifactId=hapl-obs -Dversion=$HAPL_OBS_VERSION
- stage: deploy
if: tag IS present
jdk: openjdk11
install: skip
script: skip
if: tag IS present
before_deploy:
- mvn clean
- sed -i "s|<version>0.0.1-SNAPSHOT</version>|<version>${TRAVIS_TAG}</version>|" pom.xml
- mvn package -Dmaven.test.skip=true
deploy:
provider: releases
api_key: $GITHUB_OAUTH_TOKEN
skip_cleanup: true
file_glob: true
file:
- "target/*.jar"
on:
tags: true
all_branches: true