File tree 3 files changed +50
-0
lines changed
3 files changed +50
-0
lines changed Original file line number Diff line number Diff line change @@ -42,11 +42,24 @@ jobs:
42
42
env : NAME="DOXYGEN-CHECK"
43
43
addons :
44
44
apt :
45
+ sources :
46
+ - sourceline : ' deb http://packages.cloud.google.com/apt cloud-sdk-trusty main'
47
+ key_url : ' https://packages.cloud.google.com/apt/doc/apt-key.gpg'
45
48
packages :
46
49
- doxygen
50
+ - google-cloud-sdk
47
51
install :
48
52
script : scripts/travis_doxygen.sh
49
53
before_cache :
54
+ after_success :
55
+ # Google Cloud Integration
56
+ - export BRANCH="${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}"
57
+ - openssl aes-256-cbc -k ${GCLOUD_TRAVIS_CBMC_KEY}
58
+ -in gcloud-travis-cbmc.json.enc -out gcloud-travis-cbmc.json -d
59
+ - export G_KEY=${PWD}/gcloud-travis-cbmc.json
60
+ - gcloud auth activate-service-account --key-file ${G_KEY}
61
+
62
+ - scripts/publish_doc.sh
50
63
51
64
# Ubuntu Linux with glibc using g++-5
52
65
- stage : Linter + Doxygen + non-debug Ubuntu/gcc-5 test
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ # Copy doc/html to Google Cloud bucket cprover.diffblue.com
4
+
5
+ set -euo pipefail
6
+
7
+
8
+ # ### Variables
9
+
10
+ # User-defined variables
11
+ DOCS_FQDN=" cprover.diffblue.com"
12
+ DOCS_GS=" gs://${DOCS_FQDN} "
13
+
14
+ # Path to generated HTML documentation
15
+ DOCS_PATH=" $( dirname " $( readlink -f " $0 " ) " ) /../doc/html"
16
+
17
+ # Colors for nice output
18
+ GREEN=' \033[0;32m'
19
+ # RED='\033[0;31m'
20
+ NC=' \033[0m' # No Color
21
+
22
+
23
+ # ### Deployments
24
+
25
+ # For develop branch
26
+ if [[ " ${BRANCH:- null} " == " develop" ]]; then
27
+
28
+ echo -e " \n${GREEN} Uploading ${DOCS_FQDN}${NC} \n"
29
+ # Copy HTML docs to gcloud
30
+ gsutil -m -h " Cache-Control:public,max-age=60" \
31
+ rsync -r -d -c " ${DOCS_PATH} " " ${DOCS_GS} /"
32
+ echo -e " \n${GREEN}${DOCS_FQDN} is live${NC} \n"
33
+
34
+ # For all other branches
35
+ else
36
+ echo -e " \n${GREEN} Nothing to upload in >>${BRANCH} << branch.${NC} \n"
37
+ fi
You can’t perform that action at this time.
0 commit comments