Skip to content

Commit

Permalink
Update to build on drone
Browse files Browse the repository at this point in the history
  • Loading branch information
andyHa committed Jul 13, 2018
1 parent abe659a commit 1ad6ac3
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 3 deletions.
35 changes: 35 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
clone:
git:
image: plugins/git
volumes:
- /var/repos/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}:/drone/src/github.com/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}
pipeline:
test:
image: scireum/sirius-build
commands:
- mvn clean test
volumes:
- /root/.m2:/root/.m2
- /var/repos/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}:/drone/src/github.com/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}
sonar:
image: scireum/sirius-build
commands:
- sed -i 's/DEVELOPMENT-SNAPSHOT/${DRONE_TAG}/g' pom.xml
- mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent compile sonar:sonar -Dsonar.projectKey=${DRONE_REPO_NAME}
volumes:
- /root/.m2:/root/.m2
- /var/repos/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}:/drone/src/github.com/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}
when:
event: tag
branch: master
deploy:
image: scireum/sirius-build
commands:
- sed -i 's/DEVELOPMENT-SNAPSHOT/${DRONE_TAG}/g' pom.xml
- mvn clean deploy -DskipTests
volumes:
- /root/.m2:/root/.m2
- /root/.gnupg:/root/.gnupg
- /var/repos/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}:/drone/src/github.com/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}
when:
event: tag
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
<parent>
<groupId>com.scireum</groupId>
<artifactId>sirius-parent</artifactId>
<version>3.14</version>
<version>5.0.1</version>
</parent>
<artifactId>sirius-web</artifactId>
<version>18.10</version>
<version>DEVELOPMENT-SNAPSHOT</version>
<name>SIRIUS web</name>
<description>Provides a modern and scalable web server as SIRIUS module</description>

<properties>
<sirius.kernel>11.5</sirius.kernel>
<sirius.kernel>12.0-rc2</sirius.kernel>
</properties>

<dependencies>
Expand Down

0 comments on commit 1ad6ac3

Please sign in to comment.