Skip to content
This repository was archived by the owner on Dec 20, 2023. It is now read-only.

Commit 7dad2fe

Browse files
authored
Merge pull request #305 from openweave/upload_logs_after_failure
upload logs to gcs after failure
2 parents 66f6b62 + af6d965 commit 7dad2fe

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ script:
3333
after_success:
3434
- bash <(curl -s https://codecov.io/bash)
3535

36+
after_failure:
37+
- .travis/after_failure.sh
38+
3639
matrix:
3740
include:
3841
- name: "Linux with Defaults against GCC Distribution Sanity Check"
@@ -99,3 +102,6 @@ deploy:
99102
on:
100103
repo: openweave/openweave-core
101104
tags: true
105+
env:
106+
global:
107+
secure: PJdNS8L51Y+Op8xc2C9U13Y6eQUAszDEKigB0jn9LsXB8BZwJsu3mjmtLTQBU99nqAhsCKiN85kxry6APi/xjcDJ3/iRP8IpP8KJ/VV68CChdu1X/2iatSS/EOAT4ZBoo3sUCmP98w4k5G6HiVCpnNprhZOg8xsD9bflVkX9Au67hcwfHfKWyX1c/kbYYyegSWd+7GgkNZRGAws1yuwL1MwGppDqKQJ1bOciALaA1LMzzl1wvrle6t+CWvLH51YoIgndFsTJaphGqXp/hveCIsXEGKY5ZN8RkfuSvs9JupsfoXjA9Nxg2WfLC5c4MeyJV9yvzF9zZNglra9+PTlHFMxnuSvyIKRiHb9rwXMwgtb8Tqwhe0Cikj77gHdRUfZjUNBS34nNRqACSFjSFDM9N862z17BqfMZu0A0znquM24vfm+JV1i7OZ8USdbbmBqtL5qJgimQv2/Y/j3H/o6IrqOLEhuzOXQynclf6xi6AdXlcJ1QmTTicU5JbETJuzkvOYsnUs7TBV0FaPf+j98LEHTXZUPlDtQz4sIu757SiYUuR6Jm357yOwyv+x/PMk250g2op0TtMksjR3HQahnz8HJPYLenOxogYqarqY6E4TNm2P+bRDCPgxQ+dTSvlrcH8qhl+PHImn38q38ghm98WUvqdwxAApI3cZdy4Ja/3WA=

.travis/after_failure.sh

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#!/bin/sh
2+
3+
#
4+
# Copyright 2018-2019 Google LLC All Rights Reserved.
5+
#
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
#
18+
19+
#
20+
# Description:
21+
# This file is the script for Travis CI hosted, distributed continuous
22+
# integration 'after_failure' trigger of 'failure' step.
23+
# How dpl works: https://github.com/travis-ci/dpl
24+
# How to encrypt gcs key: https://docs.travis-ci.com/user/encryption-keys/#usage
25+
26+
sudo apt-get remove ruby
27+
sudo apt update
28+
sudo apt install git curl libssl-dev libreadline-dev zlib1g-dev autoconf bison build-essential libyaml-dev libreadline-dev libncurses5-dev libffi-dev libgdbm-dev
29+
30+
cd $HOME
31+
git clone https://github.com/travis-ci/dpl.git
32+
cd $HOME/dpl/bin
33+
gem install dpl
34+
gem install bundler
35+
bundle update
36+
37+
dpl --provider=gcs --access-key-id=GOOGNPZYTVTEPZM5VBRAVVUU \
38+
--secret-access-key=$GCSKEY --bucket=openweave \
39+
--local-dir=$TRAVIS_BUILD_DIR/happy-test-logs --upload-dir=happy-test-log/$TRAVIS_BUILD_NUMBER \
40+
--acl=public-read --skip_cleanup=true

0 commit comments

Comments
 (0)