Skip to content

Commit

Permalink
chore(CI/CD): prepare and automate release
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony-Proum committed Sep 27, 2019
1 parent 4ba37f9 commit bb8787f
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 5 deletions.
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ jobs:
- script: 'if [ ! -z "$SONAR_HOST_URL" ]; then bash -c "make quality-analysis"; fi'
- stage: deploy
install: skip # bundle install is not required
branches:
only:
- master
if: tag IS present
script: make deploy-package


Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ quality-analysis: build-package ## Allows to run static quality analyis
-Dsonar.analysis.repository=$$TRAVIS_REPO_SLUG

deploy-package: ## Allows to deploy artifacts to our registry
@echo "Not implemented yet"
@docker run --mount type=bind,src=$$(pwd),target=/usr/src -w /usr/src maven:alpine mvn deploy --settings


.DEFAULT_GOAL := help
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<groupId>org.sfeir</groupId>
<artifactId>sonar-clover-plugin</artifactId>
<packaging>sonar-plugin</packaging>
<version>4.0-SNAPSHOT</version>
<version>4.1</version>

<name>Sonar Clover Plugin</name>
<description>Get code coverage with http://openclover.org/</description>
Expand Down
41 changes: 41 additions & 0 deletions travis.settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
https://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>${env.BINTRAY_NAMESPACE}</id>
<username>${env.BINTRAY_USER}</username>
<password>${env.BINTRAY_PASSWORD}</password>
</server>
</servers>
<profiles>
<profile>
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>bintray</name>
<url>http://jcenter.bintray.com</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>bintray-plugins</name>
<url>http://jcenter.bintray.com</url>
</pluginRepository>
</pluginRepositories>
<id>bintray</id>
</profile>
</profiles>
<activeProfiles>
<activeProfile>bintray</activeProfile>
</activeProfiles>

</settings>

0 comments on commit bb8787f

Please sign in to comment.