forked from rust-onig/rust-onig
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
64 lines (57 loc) · 1.4 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
language: rust
os:
- osx
- linux
rust:
- 1.34.0
- stable
- beta
- nightly
branches:
except:
- gh-pages
env:
- ONIG_FEATURES=generate
install: |
if [ "$TRAVIS_OS_NAME" == "linux" ]
then
echo installing libclang from apt
sudo apt-get install llvm-dev libclang-dev clang
else
echo installing llvm from brew
brew install llvm
fi
script:
- (cd onig && cargo build --no-default-features --verbose)
- |
if [ "$TRAVIS_OS_NAME" == "linux" ]
then
p=$(cd ./target/debug/build/onig_sys-*/out/lib/ && pwd)
echo "adding $p to linker path"
export LD_LIBRARY_PATH="${p}:${LD_LIBRARY_PATH}"
fi
- (cd onig && cargo test --no-default-features --verbose)
- (cd onig_sys && cargo test --no-default-features --verbose)
- (cd onig && cargo build --features="$ONIG_FEATURES" --verbose)
- (cd onig && cargo test --features="$ONIG_FEATURES" --verbose)
- (cd onig_sys && cargo test --features="$ONIG_FEATURES" --verbose)
# Allow failures in the nightly build. We don't want to fail just
# because of Rust instability.
matrix:
allow_failures:
- rust: nightly
include:
- rust: stable
os: osx
env: RUSTONIG_STATIC_LIBONIG=1
compiler: clang
- rust: stable
os: linux
env: RUSTONIG_STATIC_LIBONIG=1
- rust: nightly
os: linux
env: ONIG_FEATURES=std-pattern
- rust: nightly
os: osx
env: ONIG_FEATURES=std-pattern
compiler: clang