-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (42 loc) · 1.01 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
dist: bionic
language: python
services:
- docker
python:
- 3.6
- 3.7
- 3.8
cache:
pip: true
cargo: true
before_cache:
- rm -rfv target/debug/incremental/{rustafarian,build_script_build,common}-*
- rm -rfv target/debug/.fingerprint/rustafarian-*
- rm -rfv target/debug/build/rustafarian-*
- rm -rfv target/debug/deps/librustafarian-*
- rm -rfv target/debug/deps/rustafarian-*
- rm -rfv target/debug/{rustafarian,librustafarian}.d
- cargo clean -p rustafarian
env:
global:
- PIPENV_VERBOSITY=-1
- TRAVIS_RUST_VERSION=nightly
- RUST_BACKTRACE=1
install:
- pip install --upgrade pip
- pip install -U pipenv
- curl https://sh.rustup.rs -sSf | sh -s -- -y -v --default-toolchain=$TRAVIS_RUST_VERSION
- source "$HOME"/.cargo/env
- pipenv install --dev .
before_script:
- rustc --version
- python --version
script:
- pipenv run py.test -rws -v tests/
deploy:
provider: script
script: ".ci/deploy_to_pypi.sh"
on:
tags: true
repo: robertodr/rustafarian
python: 3.6