forked from GlowstoneMC/Glowstone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
28 lines (26 loc) · 1001 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
machine:
java:
version: oraclejdk8
dependencies:
override:
- git config --global user.email "circuitsoft@tuta.io"
- git config --global user.name "mastercoms"
- git clone https://github.com/GlowstoneMC/Glowkit.git
- (cd Glowkit && chmod +x glowkit && ./glowkit p)
- (cd Glowkit/Glowkit-Patched && mvn install)
test:
override:
- ./setup.sh
- cp -r target/glowstone*.jar $CIRCLE_ARTIFACTS/
- mkdir -p $CIRCLE_TEST_REPORTS/junit/
- find . -type f -regex ".*/target/surefire-reports/.*xml" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \;
deployment:
master:
branch: master
commands:
- "mvn -B -s .circleci.settings.xml -Dmaven.test.skip=true javadoc:javadoc javadoc:jar deploy"
- "mv target/site/apidocs ./glowstone"
- "zip -r javadocs.zip glowstone/"
- "cp javadocs.zip $CIRCLE_ARTIFACTS/"
- "chmod +x .circle/*"
- "./.circle/deploy.sh"