Skip to content

Commit b58c3e0

Browse files
committed
Run tests with more versions of libclang
First, update our existing 3.8.X and 3.9.X libclang testing versions to their latest point releases. Second, add testing on the latest 3.7.X release and the latest 4.0.X release.
1 parent 4bc1336 commit b58c3e0

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

.travis.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,19 @@ rust:
1414
- stable
1515

1616
env:
17-
- CARGO_TARGET_DIR=/tmp/bindgen LLVM_VERSION=3.8 BINDGEN_FEATURES=testing_only_llvm_stable
18-
- CARGO_TARGET_DIR=/tmp/bindgen LLVM_VERSION=3.9 BINDGEN_FEATURES=
17+
global:
18+
- CARGO_TARGET_DIR=/tmp/bindgen
19+
matrix:
20+
- LLVM_VERSION=3.7.1 BINDGEN_FEATURES=testing_only_llvm_stable
21+
- LLVM_VERSION=3.8.1 BINDGEN_FEATURES=testing_only_llvm_stable
22+
- LLVM_VERSION=3.9.0 BINDGEN_FEATURES=
23+
- LLVM_VERSION=4.0.0 BINDGEN_FEATURES=
24+
25+
matrix:
26+
fast_finish: true
27+
allow_failures:
28+
- env: LLVM_VERSION=4.0.0 BINDGEN_FEATURES=
29+
- env: LLVM_VERSION=3.7.1 BINDGEN_FEATURES=testing_only_llvm_stable
1930

2031
cache:
2132
directories:

ci/before_install.sh

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,13 @@
1-
set -e
1+
set -ex
22
pushd ~
33

44
# Workaround for Travis CI macOS bug (https://github.com/travis-ci/travis-ci/issues/6307)
55
if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
66
rvm get head || true
77
fi
88

9-
function llvm_version_triple() {
10-
if [ "$1" == "3.8" ]; then
11-
echo "3.8.0"
12-
elif [ "$1" == "3.9" ]; then
13-
echo "3.9.0"
14-
fi
15-
}
16-
179
function llvm_download() {
18-
export LLVM_VERSION_TRIPLE=`llvm_version_triple ${LLVM_VERSION}`
10+
export LLVM_VERSION_TRIPLE="${LLVM_VERSION}"
1911
export LLVM=clang+llvm-${LLVM_VERSION_TRIPLE}-x86_64-$1
2012

2113
wget http://llvm.org/releases/${LLVM_VERSION_TRIPLE}/${LLVM}.tar.xz

0 commit comments

Comments
 (0)