-
Notifications
You must be signed in to change notification settings - Fork 1
/
circle.yml
77 lines (62 loc) · 2.04 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Java Mave CircleCI 2.0 configuration file
# Check https://circleci.com/docs/2.0/language-java/ for more details
#
version: 2 # use CircleCI 2.0
jobs: # a collection of steps
build:
branches:
only:
- master
branches:
only:
- master
# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
docker:
#specify the version you desire here
- image: openjdk:12.0.1-jdk
branches:
only:
- master
environment:
GIT_AUTHOR_NAME: CircleCI
GIT_AUTHOR_EMAIL: [email protected]
GIT_COMMITTER_NAME: CircleCI
GIT_COMMITTER_EMAIL: [email protected]
steps:
- run: sudo apt-get install -y doxygen graphviz
- checkout
# Download and cache dependencies
#- restore_cache:
# key: ticktacktoe-{{ checksum "pom.xml" }}
- run: git clean -xdf
- run: mvn dependency:go-offline
- save_cache:
paths:
- ~/.m2
key: miner-{{ checksum "pom.xml" }}
# run tests!
- run: mvn package site
- store_test_results:
path: target/surefire-reports
- store_artifacts:
path: target/miner.jar
# push documentation online
- add_ssh_keys:
fingerprints:
- ""
- run:
name: Deploy Documentation
command: |
mv -f target/site /tmp
rm -Rf *
rm -Rf .circleci
git branch -D gh-pages || true
git checkout --orphan gh-pages
mv -f /tmp/site/* .
echo -e 'general:\n branches:\n ignore:\n - /.*/\n' > circle.yml
echo -e '*.*\n!.gitignore\n!circle.yml\n!*.htm*\n!*.css\n!*.js\n!*.png\n!*.gif\n!*.svg\n!*.json\n!*.g4\n!org\.lightjason*\n' > .gitignore
git add --all .
git commit -m "current documentation"
git push -f origin gh-pages