forked from ContinuITy-Project/ContinuITy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
24 lines (23 loc) · 1.36 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
language: java
jdk:
- oraclejdk8
branches:
only:
- master
services:
- docker
env:
global:
- GIT_MAJOR_VERSION=1
- GIT_MINOR_VERSION=4
after_success:
- if [ $TRAVIS_PULL_REQUEST == false ] && [ $TRAVIS_BRANCH == "master" ]; then
./gradlew -Psigning.keyId=$KEY_ID -Psigning.password=$SIGNING_PASSWORD -Psigning.secretKeyRingFile=../secring.gpg -Psonatype.username=$SONATYPE_USERNAME -Psonatype.password=$SONATYPE_PASSWORD -Pversion=$GIT_MAJOR_VERSION.$GIT_MINOR_VERSION.$TRAVIS_BUILD_NUMBER.dev continuity.api:publish continuity.api:closeAndReleaseRepository;
./gradlew -Psigning.keyId=$KEY_ID -Psigning.password=$SIGNING_PASSWORD -Psigning.secretKeyRingFile=../secring.gpg -Psonatype.username=$SONATYPE_USERNAME -Psonatype.password=$SONATYPE_PASSWORD -Pversion=$GIT_MAJOR_VERSION.$GIT_MINOR_VERSION.$TRAVIS_BUILD_NUMBER.dev continuity.idpa:publish continuity.idpa:closeAndReleaseRepository;
./gradlew -Psigning.keyId=$KEY_ID -Psigning.password=$SIGNING_PASSWORD -Psigning.secretKeyRingFile=../secring.gpg -Psonatype.username=$SONATYPE_USERNAME -Psonatype.password=$SONATYPE_PASSWORD -Pversion=$GIT_MAJOR_VERSION.$GIT_MINOR_VERSION.$TRAVIS_BUILD_NUMBER.dev continuity.commons:publish continuity.commons:closeAndReleaseRepository;
fi
script:
- "./gradlew build"
before_install:
- openssl aes-256-cbc -K $encrypted_key -iv $encrypted_iv
-in secring.gpg.enc -out secring.gpg -d