forked from gchq/event-logging-schema
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
68 lines (61 loc) · 3.3 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
59
60
61
62
63
64
65
66
67
68
language: java
dist: trusty
group: edge
jdk: openjdk8
sudo: required
# Pretty sure this is not needed any more, can't find any use of GH_USER_AND_TOKEN
#env:
#global:
##travis encrypt -r gchq/event-logging-schema GH_USER_AND_TOKEN="*****"
##where ***** is '<github username>:<github personal access token>'
##Required for curling the gh api to get the latest release sha
#- secure: "R/Em1F2F3PKSvLfmukEMlJnlG/mR179rCclGBBy6bgcaHkTY1/kaksTb/4JIA2gv4sT9dyBPABwYOot+wIuqsvtDQ0tbB+V5VLqg2qKkFUNCdPi5ooILTlRvltdwNYG54NIFDpqpbBTndoGHQB4fzxuMOG2OQClv/haDxsHtJ+QC3Cf7oNTJxyWxXjPGcBfhjM/s/3AY1yS27vdQGlX4SQ3ZErpPTSYbB1y56jQS1EVFNHL0dI0WGb+FshLbTYknh8b/XcoPkbC53hnRRXchPKdDuOeSSCZhmkL9rOkaLWkfNdZsZUxt1eiWiORzIaP2//TEcWwCmiqZ4WPH8YeWjemyzJjc2ZsYuGIOpZci1+2CTsdN6uq27FLV/T5RpADp/IxOcbvOG7xnJk3bpEB2OG+f+q+xsLmHpmiTVWIes1dI1mkBnWnFZwGQDSTNgFbGypZDcJp+0w941cRCWFNm0D+EOfqce9U1S9rPiulRSX8FsXOBmTxw/30it1ZrW5xQYjWXAFVN2jVZYuV50wHz5HjXUTOabZgDW14UlhVx7+V/nZVZyy78VC/GQw26doYitUKNihBDl+qDgBEOnrIZ/AoB3wUuENvXk+nAIKFQ8mc+gM3mmcGZV8gwGq4FS76U4Z3tGP0+L/FrFPQjzOVgY8XMauf/n+Wjj/F+aswMPy0="
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y libxml2-utils
- sudo apt-get install -y calibre
#install node
- nvm install 8.9.3
install:
- npm install -g gitbook-cli
script: ./travis.script.sh
deploy:
- provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: _book
target_branch: gh-pages
on:
branch: master
# To generate the api-key for github go to https://github.com/settings/tokens and create a token
# Then do travis 'travis encrypt -r gchq/event-logging-schema <token>'
# where <token> is the token copied from github
- provider: releases
api_key:
secure: ZYB9V1pcx8aLP3wTxKrR4GDG+m00Vzb+3OV24ngOtrRzt4JVJ5tl+xiWOGrg/PS3BjzTN5u44y2NhcberX4CGChimiGd7qyZmMT9B4cTUPgpF81acYnZ3odwqFkD1pGqZqKg7UP0vN1o8+v9TBvn0xktn8hzNeSrUh9Wm61+fAg5w6mnhub/FsiwAqnXYorzylPonF+sNO6SWxx4w30g7n56cx6LzWyZQ20NEEh6rb4n/eItL1xusITzKyh28Q2sYWRlyMtC74nyv2S/WbqGJ/j+hhvN/+pR5IW8K1gpPhcE3ehV3a9FasdPQ3QP5VXiO22owdiT8JjIkdNwiYMB3hltz+3hq4e6plxkANggqHIizay1Mtrjv4tGwi3cil6MC7lB1GEcY+PIxZuYof+sXn6XR9PvVJFryGbecDsN9kBmqQijadG/ClUCF0Lb0EfQqgac50pLyAo8Ft8RZZBSbCnhqRUzziRgHOZ46+874va8zjzKwuSjt2+q02IuVOYmkSzC6EJv9NVD5kZQITmMThdBe3J0q/ch9MfBg6bSwxcVmgELCQUcl62abBJG2hx1dGyXNr+zrGHO9xmXAuXHuZgq+MoYLbr6+e5F5c4zwt9AX70g4ZnxuJ2zBGU+Wq2ia5kBO4+xoXDKXBH3DMrjfYfqQCvOlV1jF7yw7TvIWYI=
file_glob: true
file:
#The generated schema files
- event-logging-transformer-main/pipelines/generated/event-logging-*.xsd
#The fat jar for transforming a source schema
- event-logging-transformer-main/build/libs/event-logging-transformer*-all.jar
#The XSLT files used by the transformer
- event-logging-transformer-main/build/distributions/transformations-*.zip
#The generated schema documentation
- event-logging-schema-docs-*.zip
- event-logging-schema-docs-*.pdf
skip_cleanup: true
on:
tags: true
#clean out gradle caches as per travis docs
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
# Cache dependencies to speed up the build
cache:
directories:
- .autoconf
- $HOME/.m2
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- node_modules # NPM packages