@@ -25,33 +25,24 @@ echo "Current commit detected: ${commit_message}"
25
25
# artifacts on a Maven repository, should only be made for one version.
26
26
27
27
# If the version is 1.8, then perform the following actions.
28
- # 1. Upload artifacts to Sonatype.
29
- # 2. Use -q option to only display Maven errors and warnings.
30
- # 3. Use --settings to force the usage of our "settings.xml" file.
31
- # 4. Notify Coveralls.
32
- # 5. Deploy site
28
+ # 1. Notify Coveralls.
29
+ # 2. Deploy site (disabled as solution not complete).
30
+
31
+ # Parameters
32
+ # 1. Use -q option to only display Maven errors and warnings.
33
+ # 2. Use --settings to force the usage of our "settings.xml" file.
33
34
34
35
if [ $TRAVIS_REPO_SLUG == " mybatis/mybatis-3" ] && [ " $TRAVIS_PULL_REQUEST " == " false" ] && [ " $TRAVIS_BRANCH " == " master" ] && [[ " $commit_message " != * " [maven-release-plugin]" * ]]; then
35
36
36
37
if [ $TRAVIS_JDK_VERSION == " openjdk8" ]; then
37
38
38
- # Deploy to sonatype
39
- ./mvnw clean deploy -Dmaven.test.skip=true -q --settings ./mvn/settings.xml
40
- echo -e " Successfully deployed SNAPSHOT artifacts to Sonatype under Travis job ${TRAVIS_JOB_NUMBER} "
41
-
42
39
./mvnw clean test jacoco:report coveralls:report -q --settings ./mvn/settings.xml
43
40
echo -e " Successfully ran coveralls under Travis job ${TRAVIS_JOB_NUMBER} "
44
41
45
- ./mvnw sonar:sonar -Dsonar.projectKey=mybatis_mybatis-3
46
-
47
42
# Deploy to site
48
43
# Cannot currently run site this way
49
44
# ./mvnw site site:deploy -q --settings ./mvn/settings.xml
50
45
# echo -e "Successfully deploy site under Travis job ${TRAVIS_JOB_NUMBER}"
51
-
52
- # Deploy to sonar
53
- ./mvnw clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=ccf0be39fd0ca5ea5aa712247c79da7233cd3caa -q --settings ./mvn/settings.xml
54
- echo -e " Successfully ran Sonar integration under Travis job ${TRAVIS_JOB_NUMBER} "
55
46
else
56
47
echo " Java Version does not support additonal activity for travis CI"
57
48
fi
0 commit comments