File tree Expand file tree Collapse file tree 4 files changed +43
-16
lines changed Expand file tree Collapse file tree 4 files changed +43
-16
lines changed Original file line number Diff line number Diff line change 1
1
language : java
2
+
2
3
jdk :
3
4
- oraclejdk8
4
- install : mvn install -P !build-extras -DskipTests=true -Dmaven.javadoc.skip=true -B -V
5
- script : mvn test -P !build-extras -B
6
- after_success :
7
- - mvn clean test jacoco:report coveralls:report -P record-coverage,!build-extras -B
8
- - chmod +x src/main/build/mvndeploy.sh && ./src/main/build/mvndeploy.sh
5
+
6
+ script : mvn install --batch-mode --show-version
7
+
8
+ deploy :
9
+ - provider : script
10
+ script : bash src/main/build/mvndeploy.sh
11
+ skip_cleanup : true
12
+ on :
13
+ repo : fxnn/brainfuck
14
+ branch : master
15
+ - provider : script
16
+ script : bash src/main/build/mvndeploy.sh
17
+ skip_cleanup : true
18
+ on :
19
+ repo : fxnn/brainfuck
20
+ tags : true
21
+ - provider : script
22
+ script : bash src/main/build/jacoco-report.sh
23
+
9
24
cache :
10
25
directories :
11
26
- ~/.m2/repository
Original file line number Diff line number Diff line change 180
180
</profile >
181
181
<profile >
182
182
<id >build-extras</id >
183
- <activation >
184
- <activeByDefault >true</activeByDefault >
185
- </activation >
186
183
<build >
187
184
<plugins >
188
185
<plugin >
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ set -e
3
+
4
+ mvn clean test jacoco:report coveralls:report -P record-coverage --batch-mode
Original file line number Diff line number Diff line change 2
2
# based on http://www.debonair.io/post/maven-cd/
3
3
4
4
set -e
5
-
6
5
DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " > /dev/null && pwd ) "
7
6
8
- if [ " $TRAVIS_BRANCH " = ' master' ] && [ " $TRAVIS_PULL_REQUEST " == ' false' ]; then
9
- openssl aes-256-cbc \
10
- -K $encrypted_8f8b80a3f07f_key -iv $encrypted_8f8b80a3f07f_iv \
11
- -in $DIR /codesigning.asc.enc -out $DIR /codesigning.asc -d
12
- gpg --fast-import $DIR /codesigning.asc
13
- mvn deploy -P sign,build-extras --settings $DIR /mvnsettings.xml
14
- fi
7
+ echo " Importing GPG key"
8
+ echo
9
+ openssl aes-256-cbc \
10
+ -K $encrypted_8f8b80a3f07f_key -iv $encrypted_8f8b80a3f07f_iv \
11
+ -in $DIR /codesigning.asc.enc -out $DIR /codesigning.asc -d
12
+ gpg --fast-import $DIR /codesigning.asc
13
+ echo
14
+
15
+ if [ " $TRAVIS_TAG " != " " ]; then
16
+ echo " Releasing version $TRAVIS_TAG "
17
+ echo
18
+ mvn versions:set -DnewVersion=$TRAVIS_TAG -DgenerateBackupPoms=false
19
+ echo
20
+ fi
21
+
22
+ echo " Deploying to repository"
23
+ echo
24
+ mvn deploy -P sign,build-extras --settings $DIR /mvnsettings.xml
25
+ echo
You can’t perform that action at this time.
0 commit comments