-
Notifications
You must be signed in to change notification settings - Fork 22
/
.travis.yml
58 lines (55 loc) · 2.58 KB
/
.travis.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
jobs:
include:
# Only tries to build the pages (for branches)
- stage: build
name: "Generate guide (branch)"
language: java
jdk:
- openjdk8
skip_cleanup: true
before_script:
- sudo apt-get update
- sudo apt-get install -y pandoc python-pydot python-pydot-ng graphviz
script:
- ./generate-guide.sh
if: branch != master OR type=pull_request
# Deploys the HTML docs to an S3 bucket
- stage: deploy
name: "Deploy Architecture Guide"
language: java
jdk:
- openjdk8
provider: s3
access_key_id: AKIARMRCKXQVNT2WVEXY
secret_access_key:
secure: FC6baNUn5/adC1Av5u4G/bmJZfEnbN5xGjLIi+IngxFX/LdYdkL0Smp/GDEQ++8FG+uEhlM0wxEOkYpAMUTD8WavPqSEeOy/QvrAervoM1IpMASw+ThBuI7WGOB46Ktv0Fu8qDG/xHt6T0hSPLtiilN70w8Gj1leQo6ZnqSdRZvPvUcuRS1Sun6VrZhixgyxIZcgZdWmHJA5BLXyTVxBgWqncQqM37/BPQJ9JHyv3zTB08N+2KGDIHJON6JJpS3t0zbKfgA9pwK1V8qfw2eAx03Ld1Se6KzTjb55DDh9P17jiVc6KmHOk2f03eQX4XK6daDh72HsiqWAtXTPmfyiHH3Kyw/Jtg5QNz68zGuylHGLKi7gyb1UTKbmSst0bX4UrO+gqCGhk35GIz74ZR7pLSH8F2xgnxaN8zqGW8yK0P+t1lsWTRoLHJ6WgkRlFhJNScKCqiCjxTU5zwoS6CbCgWkVO9YnafOush7l9HHAUHUY773kmKJbsreCMEcRy9hj473FssO0S+/WjqkhrN0VRExICyVHyJY5u7QIbzbG6NLdcCLrwMpBSCVtNujqF10VGGSCytqqRRjRwLppk1Ea/0XEmhV7daQg2UoGBiOVY/9XlhaI/CxhpnWPutzky5tVvZ2saVwDxPlA/OpJjheZj3qQ5vrZSn3kRnjknVg53RU=
bucket: archguide
local-dir: output
acl: 'public_read'
skip_cleanup: true
before_script:
- sudo apt-get update
- sudo apt-get install -y pandoc python-pydot python-pydot-ng graphviz
script:
- ./generate-guide.sh
if: branch = master AND type!=pull_request
on:
repo: thepracticaldeveloper/practical-architecture
# Use Quboo to encourage others to write documentation. Check https://quboo.tpd.io for instructions.
- stage: quboo
name: "Give score in Quboo.io"
dependencies:
- deploy
before_script:
- sudo apt-get update
- sudo apt-get install -y httpie
script:
- export QUBOO_UNIQUE_ID=`git log -1 --pretty=format:%h`
- export QUBOO_PLAYER_USERNAME=`git log -1 --pretty=format:%an | tr -cd '[:alnum:].@-_+'`
- http --check-status PUT https://api.quboo.io/score/documentation
x-quboo-access-key:${QUBOO_ACCESS_KEY} x-quboo-secret-key:${QUBOO_SECRET_KEY}
playerLogin="${QUBOO_PLAYER_USERNAME}" uniqueId=${QUBOO_UNIQUE_ID}
description="Contribution to Documentation"
if: branch = master AND type!=pull_request
on:
repo: thepracticaldeveloper/practical-architecture