File tree Expand file tree Collapse file tree 5 files changed +56
-5
lines changed Expand file tree Collapse file tree 5 files changed +56
-5
lines changed Original file line number Diff line number Diff line change @@ -2,13 +2,12 @@ language: generic
2
2
sudo : required
3
3
4
4
env :
5
- - SLUG=scalecube/scalecube-cluster
5
+ - SLUG=scalecube/scalecube-parent
6
6
- SLUG=scalecube/scalecube-security
7
+ - SLUG=scalecube/scalecube-app-utils
7
8
- SLUG=scalecube/config
8
9
- SLUG=scalecube/scalecube-benchmarks
9
- - SLUG=scalecube/scalecube-parent
10
10
- SLUG=scalecube/scalecube-gateway
11
-
12
11
services :
13
12
- docker
14
13
Original file line number Diff line number Diff line change @@ -4,7 +4,9 @@ RUN apt-get install -qy jq maven
4
4
RUN ruby -v
5
5
RUN mvn -version
6
6
RUN gem install travis
7
+
7
8
ADD entrypoint.sh /opt
9
+ ADD travis-settings.xml /opt
8
10
ADD append.to.travis.yml /opt
9
11
ADD prepend.to.travis.yml /opt
10
12
Original file line number Diff line number Diff line change @@ -33,6 +33,8 @@ mkdir -p ~/repo/src/main/scripts/ci/
33
33
cp ~ /src/main/scripts/ci/* .sh $TRAVIS_BUILD_DIR /src/main/scripts/ci/
34
34
chmod u+x $TRAVIS_BUILD_DIR /src/main/scripts/ci/* .sh
35
35
36
+ cp ~ /opt/travis-settings.xml $TRAVIS_BUILD_DIR /
37
+
36
38
git add --all
37
39
git commit -am " + script files" | true
38
40
@@ -43,7 +45,7 @@ if [ ! -f '.travis.yml' ]; then
43
45
travis init java --jdk openjdk8 \
44
46
--before-install " ./src/main/scripts/ci/before-install.sh" \
45
47
--before-install " ./src/main/scripts/cd/before-deploy.sh" \
46
- --after-success " java -jar ~/codacy-coverage-reporter-assembly.jar -l Java -r ./target/site/jacoco/jacoco.xml "
48
+ --after-success " ./src/main/scripts/ci/after-success.sh "
47
49
48
50
cat /opt/prepend.to.travis.yml .travis.yml /opt/append.to.travis.yml >> tmp.travis.yml
49
51
mv tmp.travis.yml .travis.yml
106
108
107
109
mvn -B -q -f $TRAVIS_BUILD_DIR /pom.xml -s $TRAVIS_BUILD_DIR /travis-settings.xml -P release \
108
110
help:evaluate -Dexpression=gpg.passphrase -Doutput=/tmp/gpg.passphrase
109
- // TODO
110
111
111
112
mvn -B -q -f $TRAVIS_BUILD_DIR /pom.xml -s $TRAVIS_BUILD_DIR /travis-settings.xml -P release \
112
113
fr.jcgay.maven.plugins:buildplan-maven-plugin:list-plugin -Dbuildplan.plugin=nexus-staging-maven-plugin -Dbuildplan.outputFile=/tmp/nexus-staging-maven-plugin
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ if [ -z " $CODACY_PROJECT_TOKEN " ]; then
4
+ echo [WARNING] Please go to https://app.codacy.com/app/$TRAVIS_REPO_SLUG /settings/coverage and add CODACY_PROJECT_TOKEN to travis settings
5
+ else
6
+ find -name jacoco.xml -exec java -jar ~ /codacy-coverage-reporter-assembly.jar report -l Java -r {} --partial\;
7
+ java -jar ~ /codacy-coverage-reporter-assembly.jar final
8
+ fi ;
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <settings
3
+ xsi : schemaLocation =' http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd'
4
+ xmlns =' http://maven.apache.org/SETTINGS/1.0.0'
5
+ xmlns : xsi =' http://www.w3.org/2001/XMLSchema-instance' >
6
+ <profiles >
7
+ <profile >
8
+ <id >bintray</id >
9
+ <repositories >
10
+ <repository >
11
+ <id >central</id >
12
+ <name >bintray</name >
13
+ <url >http://jcenter.bintray.com</url >
14
+ <snapshots >
15
+ <enabled >false</enabled >
16
+ </snapshots >
17
+ </repository >
18
+ </repositories >
19
+ </profile >
20
+ <profile >
21
+ <id >ossrh</id >
22
+ <activation >
23
+ <activeByDefault >true</activeByDefault >
24
+ </activation >
25
+ <properties >
26
+ <gpg .passphrase>${env.GPG_KEY}</gpg .passphrase>
27
+ </properties >
28
+ </profile >
29
+ </profiles >
30
+ <activeProfiles >
31
+ <activeProfile >bintray</activeProfile >
32
+ </activeProfiles >
33
+
34
+ <servers >
35
+ <server >
36
+ <id >ossrh</id >
37
+ <username >${env.SONATYPE_USERNAME}</username >
38
+ <password >${env.SONATYPE_PASSWORD}</password >
39
+ </server >
40
+ </servers >
41
+ </settings >
You can’t perform that action at this time.
0 commit comments