-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (33 loc) · 886 Bytes
/
.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: required
dist: bionic
addons:
apt:
packages:
- libssl-dev
cache: cargo
jobs:
fast_finish: true
include:
- name: Coverage
rust: stable
before_script:
- cargo install cargo-tarpaulin
- rustup component add rustfmt --toolchain stable-x86_64-unknown-linux-gnu
script:
- cargo build
after_success:
- cargo tarpaulin -v --ciserver travis-ci --coveralls $TRAVIS_JOB_ID
- name: Check simple example
rust: stable
script:
- cd examples/simple
- rustup component add rustfmt --toolchain stable-x86_64-unknown-linux-gnu
- cargo fmt -- --check
- cargo check
- name: Tests
rust: stable
script:
- rustup component add rustfmt --toolchain stable-x86_64-unknown-linux-gnu
- cargo fmt -- --check
- cargo test --verbose