Skip to content

Commit 1a07fa1

Browse files
author
Vlastimil Zeman
committed
Add gcloud integration to Travis
And publish documentation in case of successful build.
1 parent 17382ba commit 1a07fa1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.travis.yml

+8
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,22 @@ jobs:
4242
env: NAME="DOXYGEN-CHECK"
4343
addons:
4444
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'
4548
packages:
4649
- doxygen
50+
- google-cloud-sdk
4751
before_install:
52+
- export BRANCH="${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}"
4853
- openssl aes-256-cbc -K ${encrypted_72f9b9ee773a_key} -iv ${encrypted_72f9b9ee773a_iv}
4954
-in gcloud-travis-cbmc.json.enc -out gcloud-travis-cbmc.json -d
55+
- export G_KEY=${PWD}/gcloud-travis-cbmc.json
56+
- gcloud auth activate-service-account --key-file ${G_KEY}
5057
install:
5158
script: scripts/travis_doxygen.sh
5259
before_cache:
60+
after_success: scripts/publish_doc.sh
5361

5462
# Ubuntu Linux with glibc using g++-5
5563
- stage: Linter + Doxygen + non-debug Ubuntu/gcc-5 test

0 commit comments

Comments
 (0)