mirror of
https://github.com/netdata/libbpf.git
synced 2026-04-08 17:49:07 +08:00
travis: use travis_terminate instead of set {+,-}e combo
Apart from that it looks a bit nicer, it also acts as a workaround for https://travis-ci.community/t/exit-0-cannot-exit-successfully-on-arm/5731/4
This commit is contained in:
committed by
Andrii Nakryiko
parent
dd8f1bdd45
commit
b91f53ec5f
40
.travis.yml
40
.travis.yml
@@ -33,9 +33,7 @@ jobs:
|
|||||||
install:
|
install:
|
||||||
- $CI_MANAGERS/debian.sh SETUP
|
- $CI_MANAGERS/debian.sh SETUP
|
||||||
script:
|
script:
|
||||||
- set -e
|
- $CI_MANAGERS/debian.sh RUN || travis_terminate
|
||||||
- $CI_MANAGERS/debian.sh RUN
|
|
||||||
- set +e
|
|
||||||
after_script:
|
after_script:
|
||||||
- $CI_MANAGERS/debian.sh CLEANUP
|
- $CI_MANAGERS/debian.sh CLEANUP
|
||||||
|
|
||||||
@@ -50,9 +48,7 @@ jobs:
|
|||||||
install:
|
install:
|
||||||
- $CI_MANAGERS/debian.sh SETUP
|
- $CI_MANAGERS/debian.sh SETUP
|
||||||
script:
|
script:
|
||||||
- set -e
|
- $CI_MANAGERS/debian.sh RUN_ASAN || travis_terminate
|
||||||
- $CI_MANAGERS/debian.sh RUN_ASAN
|
|
||||||
- set +e
|
|
||||||
after_script:
|
after_script:
|
||||||
- $CI_MANAGERS/debian.sh CLEANUP
|
- $CI_MANAGERS/debian.sh CLEANUP
|
||||||
|
|
||||||
@@ -67,9 +63,7 @@ jobs:
|
|||||||
install:
|
install:
|
||||||
- $CI_MANAGERS/debian.sh SETUP
|
- $CI_MANAGERS/debian.sh SETUP
|
||||||
script:
|
script:
|
||||||
- set -e
|
- $CI_MANAGERS/debian.sh RUN_CLANG || travis_terminate
|
||||||
- $CI_MANAGERS/debian.sh RUN_CLANG
|
|
||||||
- set +e
|
|
||||||
after_script:
|
after_script:
|
||||||
- $CI_MANAGERS/debian.sh CLEANUP
|
- $CI_MANAGERS/debian.sh CLEANUP
|
||||||
|
|
||||||
@@ -84,9 +78,7 @@ jobs:
|
|||||||
install:
|
install:
|
||||||
- $CI_MANAGERS/debian.sh SETUP
|
- $CI_MANAGERS/debian.sh SETUP
|
||||||
script:
|
script:
|
||||||
- set -e
|
- $CI_MANAGERS/debian.sh RUN_CLANG_ASAN || travis_terminate
|
||||||
- $CI_MANAGERS/debian.sh RUN_CLANG_ASAN
|
|
||||||
- set +e
|
|
||||||
after_script:
|
after_script:
|
||||||
- $CI_MANAGERS/debian.sh CLEANUP
|
- $CI_MANAGERS/debian.sh CLEANUP
|
||||||
|
|
||||||
@@ -101,9 +93,7 @@ jobs:
|
|||||||
install:
|
install:
|
||||||
- $CI_MANAGERS/debian.sh SETUP
|
- $CI_MANAGERS/debian.sh SETUP
|
||||||
script:
|
script:
|
||||||
- set -e
|
- $CI_MANAGERS/debian.sh RUN_GCC8 || travis_terminate
|
||||||
- $CI_MANAGERS/debian.sh RUN_GCC8
|
|
||||||
- set +e
|
|
||||||
after_script:
|
after_script:
|
||||||
- $CI_MANAGERS/debian.sh CLEANUP
|
- $CI_MANAGERS/debian.sh CLEANUP
|
||||||
|
|
||||||
@@ -118,34 +108,26 @@ jobs:
|
|||||||
install:
|
install:
|
||||||
- $CI_MANAGERS/debian.sh SETUP
|
- $CI_MANAGERS/debian.sh SETUP
|
||||||
script:
|
script:
|
||||||
- set -e
|
- $CI_MANAGERS/debian.sh RUN_GCC8_ASAN || travis_terminate
|
||||||
- $CI_MANAGERS/debian.sh RUN_GCC8_ASAN
|
|
||||||
- set +e
|
|
||||||
after_script:
|
after_script:
|
||||||
- $CI_MANAGERS/debian.sh CLEANUP
|
- $CI_MANAGERS/debian.sh CLEANUP
|
||||||
|
|
||||||
- name: Ubuntu Bionic
|
- name: Ubuntu Bionic
|
||||||
language: bash
|
language: bash
|
||||||
script:
|
script:
|
||||||
- set -e
|
- sudo $CI_MANAGERS/ubuntu.sh || travis_terminate
|
||||||
- sudo $CI_MANAGERS/ubuntu.sh
|
|
||||||
- set +e
|
|
||||||
|
|
||||||
- name: Ubuntu Bionic (arm)
|
- name: Ubuntu Bionic (arm)
|
||||||
arch: arm64
|
arch: arm64
|
||||||
language: bash
|
language: bash
|
||||||
script:
|
script:
|
||||||
- set -e
|
- sudo $CI_MANAGERS/ubuntu.sh || travis_terminate
|
||||||
- sudo $CI_MANAGERS/ubuntu.sh
|
|
||||||
- set +e
|
|
||||||
|
|
||||||
- name: Ubuntu Bionic (s390x)
|
- name: Ubuntu Bionic (s390x)
|
||||||
arch: s390x
|
arch: s390x
|
||||||
language: bash
|
language: bash
|
||||||
script:
|
script:
|
||||||
- set -e
|
- sudo $CI_MANAGERS/ubuntu.sh || travis_terminate
|
||||||
- sudo $CI_MANAGERS/ubuntu.sh
|
|
||||||
- set +e
|
|
||||||
|
|
||||||
- stage: Coverity
|
- stage: Coverity
|
||||||
language: bash
|
language: bash
|
||||||
@@ -166,6 +148,4 @@ jobs:
|
|||||||
- sudo apt-get -y build-dep libelf-dev
|
- sudo apt-get -y build-dep libelf-dev
|
||||||
- sudo apt-get install -y libelf-dev pkg-config
|
- sudo apt-get install -y libelf-dev pkg-config
|
||||||
script:
|
script:
|
||||||
- set -e
|
- scripts/coverity.sh || travis_terminate
|
||||||
- scripts/coverity.sh
|
|
||||||
- set +e
|
|
||||||
|
|||||||
Reference in New Issue
Block a user