forked from alexec/docker-java-orchestration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
31 lines (31 loc) · 908 Bytes
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
machine:
pre:
- wget https://github.com/alexec/circleci/archive/1.0.6.tar.gz
- tar -xvf 1.0.6.tar.gz
- ./circleci-1.0.6/install.sh $CIRCLE_PROJECT_REPONAME
- $CIRCLE_PROJECT_REPONAME/circle.sh pre_machine
post:
- $CIRCLE_PROJECT_REPONAME/circle.sh post_machine
services:
- docker
environment:
DOCKER_HOST: tcp://127.0.0.1:2376
DOCKER_CERT_PATH: $HOME/.docker
DOCKER_TLS_VERIFY: 1
dependencies:
override:
- mvn install -DskipTests -s settings.xml
test:
override:
- sudo service mysql stop
- mvn deploy -Prun-its -s settings.xml
post:
- mkdir -p $CIRCLE_TEST_REPORTS/junit/
- find . -type f -regex ".*/target/.*-reports/.*xml" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \;
deployment:
staging:
branch: master
commands:
- ./circle.sh start_build docker-maven-plugin
- ./circle.sh start_build docker-ant-tasks
- ./circle.sh start_build docker-gradle-plugin