Permalink
Browse files

Relaxes the build pipeline.

We now build each push, but only run the test suite for PRs
or releases (tags).
  • Loading branch information...
andyHa committed Jul 13, 2018
1 parent e72593e commit 1b50c5bcef23790961c7eecdecd538e40c18d0fa
Showing with 10 additions and 1 deletion.
  1. +10 −1 .drone.yml
View
@@ -4,6 +4,15 @@ clone:
volumes:
- /var/repos/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}:/drone/src/github.com/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}
pipeline:
compile:
image: scireum/sirius-build
commands:
- mvn clean compile
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: push
test:
image: scireum/sirius-build
commands:
@@ -12,7 +21,7 @@ pipeline:
- /root/.m2:/root/.m2
- /var/repos/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}:/drone/src/github.com/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}
when:
event: [push, pull_request]
event: pull_request
sonar:
image: scireum/sirius-build
commands:

0 comments on commit 1b50c5b

Please sign in to comment.