-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcircle.yml
32 lines (28 loc) · 1.33 KB
/
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
32
---
checkout:
pre:
- curl -H "Authorization:token $GITHUB_TOKEN" -H 'Accept:application/vnd.github.v3.raw' -o /tmp/interop_maven_settings.xml -L https://raw.githubusercontent.com/LevelOneProject/automation/master/interop/interop_maven_settings.xml
dependencies:
override:
- "mvn dependency:resolve -s /tmp/interop_maven_settings.xml"
test:
override:
- "mvn integration-test -s /tmp/interop_maven_settings.xml"
post:
- mkdir -p $CIRCLE_TEST_REPORTS/junit/
- find . -type f -regex ".*/target/surefire-reports/.*xml" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \;
deployment:
releases:
branch: master
commands:
- git config --global user.email "[email protected]"
- git config --global user.name "Automatic Deployment via CircleCI"
- mvn -B release:prepare -Darguments="-DskipTests" -DscmCommentPrefix="[maven-release-plugin][ci skip]" -s /tmp/interop_maven_settings.xml
- mvn -B release:perform -Darguments="-DskipTests" -s /tmp/interop_maven_settings.xml
#Merge back to develop so the latest version is shared
- git remote set-url origin https://[email protected]/LevelOneProject/interop-scheme-adapter.git
- git branch -d develop
- git checkout -b develop origin/develop
- git pull origin develop
- git merge master
- git push origin develop