-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (46 loc) · 1.62 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
# Release branches will be ignored
branches:
except:
- /^release.*$/
# Host Environment
os: linux
# Build Environment
dist: bionic
services:
- xvfb
addons:
chrome: stable
firefox: latest
language: java
cache:
directories:
- $HOME/.m2
# Prerequisites
before_install:
# Export display for direct browser control
- export DISPLAY=:99.0
# Setup maven settings-security.xml for nexus staging
- openssl aes-256-cbc -K $encrypted_1cfd28b7d502_key -iv $encrypted_1cfd28b7d502_iv
-in deploy/settings-security.xml.enc -out ~/.m2/settings-security.xml -d
# Setup the code signing key; it will be used to publish snapshots and releases
- openssl aes-256-cbc -K $encrypted_1cfd28b7d502_key -iv $encrypted_1cfd28b7d502_iv
-in deploy/code-signing-key.asc.enc -out /tmp/code-signing-key.asc -d
- gpg --batch --no-default-keyring --allow-secret-key-import --import /tmp/code-signing-key.asc
- rm /tmp/code-signing-key.asc
# Setup the github deploy key as the default SSH key
- openssl aes-256-cbc -K $encrypted_1cfd28b7d502_key -iv $encrypted_1cfd28b7d502_iv
-in deploy/id_rsa.enc -out ~/.ssh/id_rsa -d
- chmod 400 ~/.ssh/id_rsa
# Pre-download all maven dependencies
install: mvn -e -B -ntp -s deploy/settings.xml -P ossrh -DskipTests=true clean install
# Integrate the latest and deploy snapshot artifacts to OSSRH. The script
# returns a success exit code to ensure build proceeds to deploy stage
script: deploy/deploy-branch.sh
# Perform a release when the repository has been tagged
deploy:
- provider: script
script: deploy/release-tag.sh
cleanup: false
on:
tags: true
branch: master