forked from image-rs/image
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (34 loc) · 1.02 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
language: rust
sudo: false
notifications:
irc: "irc.mozilla.org#piston-internals"
os:
- linux
- osx
rust:
- stable
- beta
- nightly
env:
global:
- secure: "WI/r7hbDhenb7zPXht8J0mhcx5aUgY22cCrwYmNksMmgIK9hYfPjZ68XzaQ7+Ity8b12TlHM8lGRN9bIsyAZEiRIkxkZAArY9bXAOExJaAT+yOyxhEs/QdrGB6iRhC6FTxPwgUH82j0nFL1UI7HqBnOy3g3tv23jq1AlD9N3t0k="
matrix:
- FEATURES=''
- FEATURES='gif_codec'
- FEATURES='jpeg'
- FEATURES='png_codec'
- FEATURES='pnm'
- FEATURES='tga'
- FEATURES='tiff'
- FEATURES='webp'
- FEATURES='hdr'
script:
- if [ -z "$FEATURES" ]; then
cargo build -v &&
if [ "$TRAVIS_RUST_VERSION" = "nightly" ]; then cargo test -v; fi &&
cargo doc -v;
else
cargo build -v --no-default-features --features "$FEATURES" &&
if [ "$TRAVIS_RUST_VERSION" = "nightly" ]; then cargo test -v --no-default-features --features "$FEATURES"; fi &&
cargo doc -v --no-default-features --features "$FEATURES";
fi