-
Notifications
You must be signed in to change notification settings - Fork 15
/
circle.yml
55 lines (45 loc) · 1.71 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
version: 2
jobs:
build:
docker:
# specify the version you desire here
- image: circleci/openjdk:8u171-jdk
working_directory: ~/repo
environment:
# Customize the JVM maximum heap limit
MAVEN_OPTS: -Xmx3200m
steps:
- checkout
# Download and cache dependencies
- restore_cache:
keys:
- v2-dependencies-{{ checksum "pom.xml" }}
# fallback to using the latest cache if no exact match is found
- v2-dependencies-
# build and run tests (non-integration tests)
- run: mvn clean
- run: mvn dependency:resolve -DskipITs package
- save_cache:
when: always
paths:
- ~/.m2
key: v2-dependencies-{{ checksum "pom.xml" }}
# build eclipse plugin
- run: mvn install -DskipTests
- run: cd plugins/eclipse && mvn package
- run:
name: pull test reports and artifacts together
when: always
command: |
mkdir -p test-reports
find . -type f -regex ".*/surefire-reports/.*xml" -exec cp {} test-reports/ \;
mkdir -p build-artifacts
find . -type f -regex ".*/runtime/target/.*jar" -exec cp {} build-artifacts/ \;
find . -type f -regex ".*/standalone_runtime/target/.*jar" -exec cp {} build-artifacts/ \;
find . -type f -regex ".*/master/target/.*jar" -exec cp {} build-artifacts/ \;
mv plugins/eclipse/evosuite-eclipse-site build-artifacts/
- store_test_results:
path: test-reports
- store_artifacts:
path: build-artifacts
destination: artifacts