File tree Expand file tree Collapse file tree 2 files changed +57
-8
lines changed Expand file tree Collapse file tree 2 files changed +57
-8
lines changed Original file line number Diff line number Diff line change @@ -18,26 +18,37 @@ language: sh
18
18
os : linux
19
19
dist : xenial
20
20
21
+
21
22
cache :
22
23
pip : true
23
24
directories :
24
25
- $HOME/.cache/apt
25
26
- $HOME/gcc-arm-none-eabi-6-2017-q2-update
26
27
28
+
27
29
before_install :
30
+ - source tools/test/travis-ci/functions.sh
31
+ - set_status "pending" "Test started."
32
+
28
33
# Make sure pipefail
29
- - set -o pipefail
34
+ # - set -o pipefail
30
35
# Setup apt to cache
31
- - mkdir -p $HOME/.cache/apt/partial
32
- - sudo rm -rf /var/cache/apt/archives
33
- - sudo ln -s $HOME/.cache/apt /var/cache/apt/archives
36
+ # - mkdir -p $HOME/.cache/apt/partial
37
+ # - sudo rm -rf /var/cache/apt/archives
38
+ # - sudo ln -s $HOME/.cache/apt /var/cache/apt/archives
34
39
# Setup ppa to make sure arm-none-eabi-gcc is correct version
35
- - sudo add-apt-repository -y ppa:team-gcc-arm-embedded/ppa
36
- - sudo add-apt-repository -y ppa:deadsnakes/ppa
40
+ # - sudo add-apt-repository -y ppa:team-gcc-arm-embedded/ppa
41
+ # - sudo add-apt-repository -y ppa:deadsnakes/ppa
37
42
# workaround for https://travis-ci.community/t/then-sudo-apt-get-update-failed-public-key-is-not-available-no-pubkey-6b05f25d762e3157-in-ubuntu-xenial/1728
38
- - sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 762E3157
43
+ # - sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 762E3157
39
44
# Loop until update succeeds (timeouts can occur)
40
- - travis_retry $(! sudo apt-get update 2>&1 |grep Failed)
45
+ # - travis_retry $(! sudo apt-get update 2>&1 |grep Failed)
46
+
47
+ after_success :
48
+ - set_status "success" "Success!"
49
+
50
+ after_failure :
51
+ -set_status "failure" "Test failed."
41
52
42
53
43
54
matrix :
Original file line number Diff line number Diff line change
1
+ #! /bin/bash -euf
2
+ #
3
+ # Copyright (c) 2013-2018 Arm Limited. All rights reserved.
4
+ #
5
+ # SPDX-License-Identifier: Apache-2.0
6
+ #
7
+ # Licensed under the Apache License, Version 2.0 (the License); you may
8
+ # not use this file except in compliance with the License.
9
+ # You may obtain a copy of the License at
10
+ #
11
+ # www.apache.org/licenses/LICENSE-2.0
12
+ #
13
+ # Unless required by applicable law or agreed to in writing, software
14
+ # distributed under the License is distributed on an AS IS BASIS, WITHOUT
15
+ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ # See the License for the specific language governing permissions and
17
+ # limitations under the License.
18
+
19
+ set -o pipefail
20
+
21
+ info () { echo " I: ${1} " ; }
22
+ die () { echo " E: ${1} " 1>&2 ; exit ${2:- 1} ; }
23
+
24
+ set_status ()
25
+ {
26
+ local _name=${NAME}
27
+ local _payload=$( <<< "
28
+ {
29
+ 'state': '${1}',
30
+ 'description': '${2}',
31
+ 'context': 'travis-ci/${_name}',
32
+ 'target_url': 'https://travis-ci.org/${TRAVIS_REPO_SLUG}/jobs/${TRAVIS_JOB_ID}'
33
+ }" tr ' "' ' "' )
34
+
35
+ curl --silent --output /dev/null --user " ${MBED_BOT} " --request POST \
36
+ " https://api.github.com/repos/${TRAVIS_REPO_SLUG} /statuses/${TRAVIS_PULL_REQUEST_SHA:- $TRAVIS_COMMIT } " \
37
+ --data @- <<< " ${payload}"
38
+ }
You can’t perform that action at this time.
0 commit comments