forked from gosu-lang/gosu-lang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
43 lines (35 loc) · 1.09 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
machine:
timezone:
America/Los_Angeles
java:
version:
oraclejdk8
environment:
MAVEN_OPTS: "-Xmx512m"
TERM: dumb
dependencies:
override:
# Compiles tests, but does not run them
- mvn install -DskipTests=true -B
general:
branches:
ignore:
- /rel\/.*/
artifacts:
- "gosu-test/target/site" # preserve the generated HTML test reports
test:
override:
# Only executes tests
- mvn surefire:test -B
post:
- mkdir -p $CIRCLE_TEST_REPORTS/junit/
- find . -type f -regex ".*/target/surefire-reports/.*xml" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \;
- find . -type f -regex ".*/target/surefire-reports/.*-output.txt" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \;
deployment:
snapshots:
# Applies to all branches not beginning with 'rel/'
branch: /^(?!rel\/).+/
commands:
# 'deploy' ordinarily ensured everything is up-to-date, but mvn's incremental compiler doesn't work well with Gosu
# therefore we skip test compilation entirely and rely on the JARs built by 'mvn install'
- ./ci_scripts/deploy_snapshot.sh