-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
48 lines (42 loc) · 1.71 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
language: rust
cache: cargo
sudo: required
services: docker
rust:
- stable
- beta
- nightly
env:
global:
secure: "hKI38DrTFKOKDFQGFYsAkVuEvaaivpNvb93H3IfdUoziZ3B8dstbQXj7bBvHbvu9qZ6Dz6aqwiGNZ62JlXA+rZfs937ZrgVQnGLstBCcgoxK7hNpYyjRwXj8hyHMdVLfTD8QBrAdB3gkZ8LT531EyFKNNgNUb8hGTHBO6f6eV59jyQeAxXL0A+Ftp9mP7SyQeQEtFclyCpTG/wxuCyXOU9fiub/0Kwuv5QSOO09xXtkJ15+yBbjLWiTVtC5Hy7eVaP7vi5x/LZ7OaoBRNRbOcHsoPkOBmYgW4NlmSQMWOy27pZwKtyi6SwckW+aGNJjwWUR+VaarqyrjROsGaxQGhNgN066S9GnI7I3hOTza77x0PJoonfAOH7R61E9zxe35N0UvkikJE0I3+9TG+IJre618UeU+6GPE4Zp0LZZnlghRBe65gWfNfYAQ62kkbu8lDLxK6LI9nV8BIegAceHd6AWaev50imP/IrkIGFECwv0S2gW+HBjTCYlIgsA8kpdMltf4R4veWZRg7BPUmUUYxGzigbCGeNhKszLoC1leEif4g9j/AmdvWQdcr5HES1HrFUksv+Lo43WVL/g2lYb+eFI5KF7sfknS+CQxt3IvRN7/lmtg1UEJwQT5oAHLgtfiWCf1AExAHp7YM7Rfq4vK8pp0zYh45G5vmnXVmyD011Y="
matrix:
- TARGET="x86_64-unknown-linux-gnu"
- TARGET="mips-unknown-linux-gnu"
- TARGET="mipsel-unknown-linux-gnu"
- TARGET="mips64-unknown-linux-gnuabi64"
- TARGET="mips64el-unknown-linux-gnuabi64"
- TARGET="aarch64-unknown-linux-gnu"
before_install:
- command -v cross 1>/dev/null || cargo install cross
script:
- cross build --target $TARGET --verbose --all
- cross test --target $TARGET --verbose --all
matrix:
allow_failures:
- rust: nightly
fast_finish: true
include:
- rust: stable
? env
? before_install
script:
- rustup component add rustfmt-preview
- cargo fmt --all -- --check
deploy:
# Create new crates.io package
- provider: script
skip_cleanup: true
script: cargo publish --token ${CRATESIO_TOKEN}
on:
condition: x$CRATESIO_TOKEN != 'x' && $TRAVIS_RUST_VERSION = stable && $TARGET = 'x86_64-unknown-linux-gnu'
tags: true