-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
65 lines (57 loc) · 2.3 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
language: rust
rust: nightly
env:
global:
- RUST_BACKTRACE=full
- KCOV_DIR=${HOME}/.cache/tools/kcov
- CODECOV_DIR=${HOME}/.cache/tools/codecov
matrix:
include:
- os: linux
dist: bionic
env: MAKE_TARGET=coverage
- os: osx
env: MAKE_TARGET=test-all-flavours
- os: windows
env: MAKE_TARGET=test-all-flavours PYTHON_SYS_EXECUTABLE=/C/Python37/python.exe PATH=${PATH}:/C/Python37/:/C/Python37/Scripts
- os: linux
dist: bionic
env: MAKE_TARGET=doc
- os: linux
dist: bionic
env: MAKE_TARGET=audit
- os: linux
dist: bionic
# Before updating this make sure that nighly-YYYY-MM-DD contains either rustfmt and clippy
# Use
# * `curl -s https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu/clippy`
# * `curl -s https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu/rustfmt`
# to validate that both tools are available
rust: nightly-2020-11-25
env: MAKE_TARGET=lint
install:
- bash scripts/travis/install.sh
before_script:
- bash scripts/travis/before_script.sh
script:
- make "${MAKE_TARGET}"
# cache:
# timeout: 3600
# directories:
# - ${HOME}/.cache/pre-commit
# - ${CODECOV_DIR}
# - ${HOME}/.cargo/
# - ${TRAVIS_BUILD_DIR}/target
# - /C/ProgramData/chocolatey
# notifications:
# email: false
# slack:
# # Personal Slack notification
# secure: Something not set yet
deploy:
provider: cargo
token:
secure: koNCxK/O/zVgWr6MKW7pFwkV5dhza4MySHwm+sEB5o67zcuLUfzQifpbQmHaJVskxq+KCriOImSLjxrZJDSPHAWnxktf1yWdP7/gGnQgbfI0jIYOSlCVsp8UClg+YDANrQcJjv1X34YevlU/kll0VnsQ3Ym9vuKWLQgrmoZQWx9bZs7znHS0Cd6ijTitD7E2gsPAYlRB0T8Y7pYU5MQd08wtP/1XPhIJyZ2RG6W+WPCv6js60Cqnxhx2cCBMRi8RKtS8lNEm21akVOPxmgeuQr4TY0lDNZlXFfz7ujjBSzUa2EYGQ2Ut8ds2UmeQ+M8cRRCpdgECI/PT6O/hQiez5wek61HX/Vz/qBISlzjw9Xg50Ts99Ga9PMcZLwPi8WTJFYyMSIZX00DluJ3qnQzTcCofBoFUWtwAuRukc98YNC2WBfty5F6xOg/1xhOL4i57YXR1Bz0dKFVgAJ6xrhT7t/KnSTApY47SzZhQgLGLdCk6gyOtaeeUA54z8S3jAEEstULWKOx4fHz+nU8kRtNQSin67RfHsLgxWj0cRnBiQ08fbdW/6BB6sEMvBOQ/HsEVkDpAMaZY/xBR9tF2CnAAqni7iQ6yuRO5nIPm5O3ytF/bMkDPPV5Wx+vnGSxfe74c2vA5V/HJGdvQHEiflUQ61G6mQr+0V2GrnYunHExSjiQ=
on:
condition: ${TRAVIS_OS_NAME} = "linux" && ${TRAVIS_REPO_SLUG} = macisamuele/json-trait-rs && ${MAKE_TARGET} = coverage && $(bash scripts/cargo-version.sh) = ${TRAVIS_TAG}
tags: true