This repository has been archived by the owner on Apr 24, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (47 loc) · 1.52 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
---
language: java
jdk: openjdk9
cache:
directories:
- $HOME/.m2
before_install:
- echo $GPG_SECRET_KEYS | base64 --decode | $GPG_EXECUTABLE --import
- echo $GPG_OWNERTRUST | base64 --decode | $GPG_EXECUTABLE --import-ownertrust
- mvn install:install-file -Dfile=src/main/resources/rpi-ws281x-java-2.0.0-SNAPSHOT.jar -DgroupId=com.github.mbelling -DartifactId=rpi-ws281x-java -Dversion=2.0.0-SNAPSHOT -Dpackaging=jar -DgeneratePom=true
branches:
only:
- master
- /^travis.*/
stages:
- name: test
- name: deploy
if: branch = master AND type != pull_request
jobs:
include:
- stage: test
install: skip
after_success: bash <(curl -s https://codecov.io/bash)
- stage: deploy
install: skip
script: skip
deploy:
- provider: script
script: mvn deploy --settings .maven.xml -DskipTests=true -Ddokka=true -B
- stage: deploy
install: skip
script: skip
before_script:
- DEPLOY_DOCS=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout 2> /dev/null | grep -v SNAPSHOT) || echo "Snapshot detected, skipping doc deploy"
deploy:
- provider: script
script: mvn site --settings .maven.xml -DskipTests=true -Ddokka=true -B && git add dokka
on:
condition: $DEPLOY_DOCS
- provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
keep-history: true
verbose: true
local_dir: ./dokka
on:
condition: $DEPLOY_DOCS