-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
26 lines (24 loc) · 939 Bytes
/
.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
language: java
jdk:
- openjdk12
install:
- sudo rm -rf ./protoc
- wget https://github.com/protocolbuffers/protobuf/releases/download/v3.11.4/protoc-3.11.4-linux-x86_64.zip
- unzip protoc-3.11.4-linux-x86_64.zip -d protoc
- chmod 755 -R protoc
- BASE=/usr/local
- sudo rm -rf $BASE/include/google/protobuf/
- sudo cp protoc/bin/protoc $BASE/bin
- sudo cp -R protoc/include/* $BASE/include
jobs:
include:
- stage: test
script:
- mvn verify
- stage: deploy
if: (( branch = master ) AND (commit_message =~ /^deploy-release.*/ ))
script:
- echo $GPG_SECRET_KEYS | base64 --decode | $GPG_EXECUTABLE --import
- echo $GPG_OWNERTRUST | base64 --decode | $GPG_EXECUTABLE --import-ownertrust
- mvn --settings .maven.xml install -DskipTests=true -Dgpg.skip -Dmaven.javadoc.skip=true -B -V
- mvn clean deploy --settings .maven.xml -DskipTests=true -B -U -Prelease