-
Notifications
You must be signed in to change notification settings - Fork 5
/
wercker.yml
63 lines (59 loc) · 1.91 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
58
59
60
61
62
63
box: logimethods/maven-nats:v1.4.0
build:
steps:
- script:
name: Start NATS servers
code: |
gnatsd -p 4221&
nats-streaming-server -p 4223&
sleep 10
- xenoterracide/maven:
name: Compile & Test
goals: clean compile test
deploy_snapshot:
steps:
- xenoterracide/maven:
name: Deploy Jar File
goals: -s ./settings.xml -Dmaven.test.skip=true clean deploy
deploy:
steps:
- script:
name: Store keys
code: |
export ASC_DIRECTORY=$(pwd)/pgp
mkdir pgp
mkdir /root/.gnupg
echo "${SONATYPE_PGP_KEYS_64}" | base64 -d > ./pgp/keys.asc
ls -als ./pgp
gpg --version
gpg --batch --import ./pgp/keys.asc
- xenoterracide/maven:
name: Sign & Deploy Artifacts
goals: -s ./settings.xml -Dmaven.test.skip=true clean verify deploy
javadoc:
steps:
- add-ssh-key:
keyname: GITHUB_SSH_KEY
host: github.com
- add-to-known_hosts:
hostname: github.com
fingerprint: nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8
type: rsa
- script:
name: Configure Git
code: |-
git config --global user.email "$GITHUB_EMAIL"
git config --global user.name "$GITHUB_USERNAME"
- xenoterracide/maven:
name: Publish Javadoc to Github Pages
goals: -Dmaven.test.skip=true scm-publish:publish-scm
- script:
name: Set index.htm
code: |-
cd /pipeline/source/target/scmpublish
ls docs | perl -e 'print "<html><body><ul>"; while(<>) { chop $_; print "<li><a href=\"./docs/$_/api\">$_</a></li>";} print "</ul></body></html>"' > index.htm
echo "Last edited the $(date +'%Y-%m-%d at %H:%M:%S')" >> index.htm
more index.htm
git add --all
git commit -a -m "Wercker Run Id: '${WERCKER_RUN_ID}'"
git push origin gh-pages