-
Notifications
You must be signed in to change notification settings - Fork 36
/
.travis.yml
24 lines (24 loc) · 923 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
language: java
before_install:
- sudo rm -rf /usr/local/maven-3.9.4
- curl -s "https://get.sdkman.io" | bash
- source "$HOME/.sdkman/bin/sdkman-init.sh"
- sdk install java 11.0.25-tem
- sdk use java 11.0.25-tem
- unset M2_HOME MAVEN_HOME
- sdk install maven 3.9.9
- sdk use maven 3.9.9
- export PATH="$(sdk home maven 3.9.9)/bin:$PATH"
jobs:
include:
- if: repo = alfasoftware/astra AND head_repo = alfasoftware/astra AND type = pull_request
name: "Test"
script:
- git fetch --quiet
- mvn clean verify
- if: repo = alfasoftware/astra AND (branch = main OR tag IS present) AND NOT type = pull_request
name: "Deploy"
script:
- echo $GPG_SECRET_KEYS | base64 --decode | $GPG_EXECUTABLE --import
- echo $GPG_OWNERTRUST | base64 --decode | $GPG_EXECUTABLE --import-ownertrust
- mvn clean deploy --settings .maven-settings.xml -B -U -Prelease