This repository has been archived by the owner on Feb 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
89 lines (80 loc) · 1.52 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
language: rust
cache: cargo
dist: xenial
sudo: true
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- cmake
- gcc
- binutils-dev
- libiberty-dev
- zlib1g-dev
# Run builds in Linux, MacOS X and Windows
os:
- linux
- osx
- windows
# Run builds for all the supported trains
rust:
- 1.37.0
- stable
- beta
- nightly
stages:
- test
- deploy
# Extra jobs to include
jobs:
include:
# Upload documentation
- name: "Documentation upload"
os: linux
rust: stable
stage: deploy
env: CACHE_NAME=DOCS
script: ./travis-helper.sh documentation
deploy: &pages
provider: pages
github-token: $GH_TOKEN
local-dir: target/doc/
skip_cleanup: true
keep-history: true
on:
repo: SUPERAndroidAnalyzer/abxml-rs
branch: develop
# Crates.io deployment
- name: "crates.io deployment"
os: linux
rust: stable
stage: deploy
env: CACHE_NAME=DEPLOY
script: skip
deploy:
provider: cargo
token: $CARGO_TOKEN
on:
repo: SUPERAndroidAnalyzer/abxml-rs
tags: true
matrix:
allow_failures:
- os: windows
# Run the multiple tests
script:
- ./travis-helper.sh fmt_check
- ./travis-helper.sh clippy_check
- ./travis-helper.sh test
after_success:
- ./travis-helper.sh upload_code_coverage
notifications:
email:
recipients:
on_success: change
on_failure: always