-
Notifications
You must be signed in to change notification settings - Fork 2
/
wercker.yml
57 lines (56 loc) · 1.67 KB
/
wercker.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
# docker box definition
box: java
# defining the dev pipeline
build:
steps:
- install-packages:
packages: git openssl pkg-config libssl-dev wget zlib1g-dev unzip openssh-client unzip tar maven
- script:
name: Building Project
code: mvn compile
- script:
name: Executing tests
code: mvn test
deploy :
steps :
- install-packages:
packages: git openssl pkg-config libssl-dev python wget zlib1g-dev unzip openssh-client rsync maven
- script:
name: Downloading PIP
code: |-
curl -O https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.py
- script:
name: Testing Python
code: python --version
- script:
name: Testing PIP
code: pip --version
- script:
name: Installing MkDocs
code: sudo pip install mkdocs
- script:
name: Building Documentation
code: |-
mvn javadoc:javadoc
rsync -avh --progress target/site/apidocs Documentazione/docs/javadoc
cd Documentazione
mkdocs build
cd ../
- script:
name: Configure git
code: |-
git config --global user.email "[email protected]"
git config --global user.name "werckerbot"
git config --global push.default matching
- script:
name: Deploy to github pages
code: |-
cd Documentazione
git clone $GIT_REMOTE --branch=gh-pages
sudo chmod 0777 -R site
sudo rsync -avh ./site/ ./Pizza/
cd Pizza
git add .
git commit -m "[ci skip]deploy commit from $WERCKER_STARTED_BY"
git push