-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcircle.yml
34 lines (28 loc) · 976 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
32
33
34
## Customize the test machine
machine:
java:
version: oraclejdk7
dependencies:
pre:
- cp ci/settings.xml ~/.m2/
# Cache maven local repository so that we don't have to get dependencies every time
cache_directories:
- ~/.m2/repository
override:
- mvn clean install
test:
override:
# Run junit tests for WSO2 ESB Agent
- mvn test
# After running tests collect junit & integration-test reports and build artifacts
post:
- mkdir -p $CIRCLE_TEST_REPORTS/junit/
- mkdir -p $CIRCLE_TEST_REPORTS/integration-test/
- find . -type f -regex ".*/target/surefire-reports/.*xml" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \; #JUnit tests
- find . -type f -regex ".*/target/failsafe-reports/.*xml" -exec cp {} $CIRCLE_TEST_REPORTS/integration-test/ \; #JUnit tests
- cp target/AgentWso2Esb*.jar $CIRCLE_ARTIFACTS/ # Store builded jar as an artifact
deployment:
bintray:
branch: master
commands:
- mvn deploy