-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
50 lines (49 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
dist: xenial
sudo: false
cache: pip
language: python
python:
- 3.8
stages:
- lint
- docs
- test
env:
global:
- RPY2_CFFI_MODE=ABI
before_install:
- sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
- sudo add-apt-repository 'deb [arch=amd64,i386] https://cran.rstudio.com/bin/linux/ubuntu xenial/'
- sudo apt-get update
- sudo apt-get install r-base
#addons:
# apt:
# sources:
# - sourceline: 'deb [arch=amd64,i386] https://cran.rstudio.com/bin/linux/ubuntu xenial/'
# update: true
# packages:
# - r-base
jobs:
include:
# lint stage
- stage: lint
env: TOXENV=manifest
- env: TOXENV=flake8
- env: TOXENV=pyroma
# docs stage
- stage: docs
env: TOXENV=doc8
- env: TOXENV=docs
# test stage
- stage: test
env: TOXENV=py
install:
- pip install --upgrade pip
- pip install tox
- pip install codecov
- pip install coverage
script:
- tox
after_success:
- tox -e coverage-report
- codecov