-
Notifications
You must be signed in to change notification settings - Fork 29
/
.travis.yml
70 lines (58 loc) · 1.92 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
65
66
67
68
69
70
sudo: required
dist: xenial
language: rust
matrix:
include:
# optional feature variations
# we want full coverage, include all features...
- rust: stable
env: NAME=stable
RUST_BACKTRACE=full
- rust: beta
env: NAME=beta
RUST_BACKTRACE=full
- os: osx
rust: stable
env: NAME=macos
RUST_BACKTRACE=full
# Fail to build due to bindgen/msvc 2017/clang incompatibility
#- os: windows
# rust: stable
# env: NAME=windows
# RUST_BACKTRACE=full
- rust: nightly
env: RUST_BACKTRACE=full
- rust: stable
env: NAME=clippy
RUST_BACKTRACE=full
CLIPPY=true
script:
- rustup component add clippy
- cargo clippy
- rust: stable
env: NAME=rustfmt
RUST_BACKTRACE=full
RUSTFMT=true
script:
- rustup component add rustfmt
- cargo fmt --all -- --check
## bindingtester
- rust: stable
env: NAME=bindingtester
RUST_BACKTRACE=full
script:
- scripts/run_bindingtester.sh
allow_failures:
- rust: nightly
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then scripts/install_foundationdb_linux.sh ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then scripts/install_foundationdb_macos.sh ; fi
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then scripts/install_foundationdb_win64.sh ; export PATH="${PATH}:/c/Program Files/foundationdb/bin" ; fi
script:
- cargo test --manifest-path foundationdb-sys/Cargo.toml
- cargo test --manifest-path foundationdb-gen/Cargo.toml
- cargo test --manifest-path foundationdb/Cargo.toml
- cargo test --manifest-path foundationdb/Cargo.toml --no-default-features --features fdb-6_0 --tests
- cargo test --manifest-path foundationdb-bench/Cargo.toml
- cargo run --manifest-path foundationdb/Cargo.toml --example class-scheduling
# after_success: cargo kcov here...