forked from gimli-rs/gimli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
72 lines (63 loc) · 1.67 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
sudo: false
language: rust
cache:
directories:
- /home/travis/.cargo
os:
- linux
- osx
osx_image: xcode7.1
rust:
- nightly
- beta
- stable
addons:
apt:
packages:
- libssl-dev
before_script:
- if [[ -e ~/.local/bin ]]; then export PATH=~/.local/bin:$PATH; fi
- echo PATH is $PATH
- export RUST_BACKTRACE=1
script: ./ci/script.sh
env:
matrix:
- GIMLI_JOB="test" GIMLI_PROFILE=
- GIMLI_JOB="build" GIMLI_PROFILE="--no-default-features --features read,std"
- GIMLI_JOB="build" GIMLI_PROFILE="--no-default-features --features write"
matrix:
fast_finish: true
include:
# Coverage should only run on Linux. tarpaulin currently requires nightly Rust.
- rust: nightly
os: linux
sudo: required
env: GIMLI_JOB="coverage" GIMLI_PROFILE=
# Building docs only needs to happen on one os and only on stable.
- rust: stable
os: linux
env: GIMLI_JOB="doc" GIMLI_PROFILE=
# Benching should only happen on nightly.
- rust: nightly
env: GIMLI_JOB="bench" GIMLI_PROFILE=
# The no-std/alloc build should only happen on nightly.
- rust: nightly
env: GIMLI_JOB="alloc" GIMLI_PROFILE=
# Build a 32 bit target.
- rust: stable
sudo: required
services: docker
env:
- TARGET=i686-unknown-linux-gnu
- GIMLI_JOB=cross
- GIMLI_PROFILE=
# Build a big-endian target.
- rust: stable
sudo: required
services: docker
env:
- TARGET=powerpc64-unknown-linux-gnu
- GIMLI_JOB=cross
- GIMLI_PROFILE=
allow_failures:
- env: GIMLI_JOB="alloc" GIMLI_PROFILE=