forked from hickory-dns/hickory-dns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
151 lines (132 loc) · 3.54 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
sudo: required
dist: trusty
language: rust
matrix:
include:
# parallel builds for tests
- rust: stable
env: NAME=all_features
RUST_BACKTRACE=full
script:
- scripts/test_all_features.sh
after_success:
- scripts/run_kcov.sh
# parallel builds for tests
- rust: stable
env: NAME=default_features
RUST_BACKTRACE=full
script:
- scripts/test_default_features.sh
after_success:
- scripts/run_kcov.sh
# parallel builds for tests
- rust: stable
env: NAME=dns_over_native_tls
RUST_BACKTRACE=full
script:
- scripts/test_dns_over_native_tls.sh
after_success:
- scripts/run_kcov.sh
# parallel builds for tests
- rust: stable
env: NAME=dns_over_openssl
RUST_BACKTRACE=full
script:
- scripts/test_dns_over_openssl.sh
after_success:
- scripts/run_kcov.sh
# parallel builds for tests
- rust: stable
env: NAME=dns_over_rustls
RUST_BACKTRACE=full
script:
- scripts/test_dns_over_rustls.sh
after_success:
- scripts/run_kcov.sh
# parallel builds for tests
- rust: stable
env: NAME=dnssec_openssl
RUST_BACKTRACE=full
script:
- scripts/test_dnssec_openssl.sh
after_success:
- scripts/run_kcov.sh
# parallel builds for tests
- rust: stable
env: NAME=dnssec_ring
RUST_BACKTRACE=full
script:
- scripts/test_dnssec_ring.sh
after_success:
- scripts/run_kcov.sh
# parallel builds for tests
- rust: stable
env: NAME=mdns
RUST_BACKTRACE=full
script:
- scripts/test_mdns.sh
after_success:
- scripts/run_kcov.sh
# parallel builds for tests
- rust: stable
env: NAME=no_default_features
RUST_BACKTRACE=full
script:
- scripts/test_no_default_features.sh
after_success:
- scripts/run_kcov.sh
# min rust version
# - rust: 1.14.0
- rust: beta
env: NAME=beta
RUST_BACKTRACE=full
script:
- scripts/test_all_features.sh
# macos
- os: osx
rust: stable
env: NAME=macOS
RUST_BACKTRACE=full
script:
- scripts/test_all_features.sh
# nightly
- rust: nightly
env: NAME=nightly
RUST_BACKTRACE=full
script:
- scripts/test_all_features.sh
# clippy
- rust: nightly
env: NAME=clippy
RUST_BACKTRACE=full
before_install:
- cargo install clippy --force
script:
- scripts/run_clippy.sh
- rust: nightly
env: NAME=rustfmt
RUST_BACKTRACE=full
before_install:
- cargo install rustfmt-nightly --force
script:
- cargo fmt --all -- --write-mode=diff
# compatiblity tests
- rust: stable
env: NAME=compatiblity
TDNS_BIND_PATH="../../bind-9.11.0-P1/bin/named/named"
RUST_BACKTRACE=full
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then scripts/install_openssl_deb.sh; fi
- scripts/install_bind.sh
script:
- cargo test --manifest-path compatibility-tests/Cargo.toml --no-default-features --features=bind
after_success:
- scripts/run_kcov.sh
allow_failures:
- rust: nightly
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then scripts/install_openssl_deb.sh; fi
## All scripts are run above...
script:
- fail
#after_success: scripts/run_kcov.sh