forked from randy3k/rpy2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
89 lines (81 loc) · 2.03 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: python
compiler:
- gcc
- clang
matrix:
allow_failures:
- os: osx
include:
#- os: linux
# dist: xenial
# python: 3.5
- os: linux
dist: xenial
python: 3.6
- os: linux
dist: xenial
python: 3.7
- os: osx
language: generic
before_install:
- |
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
# Install from latest CRAN binary build for OS X
wget https://cloud.r-project.org/bin/macosx/R-latest.pkg -O /tmp/R-latest.pkg
echo "Installing OS X binary package for R"
sudo installer -pkg "/tmp/R-latest.pkg" -target /
rm "/tmp/R-latest.pkg"
brew update
brew upgrade python3
python3 -m venv py3_env
source py3_env/bin/activate
else
sudo apt-get install -y lsb-release
sudo apt-key adv \
--keyserver keyserver.ubuntu.com \
--recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
sudo add-apt-repository \
--yes \
"deb https://cloud.r-project.org/bin/linux/ubuntu/ $(lsb_release -c -s)-cran35/"
cat /etc/apt/sources.list
sudo apt-get update -qq
sudo apt-get install -y r-base
fi
- |
sudo Rscript ./install_r_packages.r dplyr ggplot2 tidyr
pip install flake8 pytest codecov pytest-cov
pip install ipython pandas numpy tzlocal
addons:
apt:
update: true
install:
- python setup.py install
# command to run tests
script:
- |
flake8 \
rpy/ipython/ \
rpy/rinterface.py \
rpy/rinterface_lib/ \
rpy/rlike/functional.py \
rpy/rlike/indexing.py \
rpy/robjects/c*.py \
rpy/robjects/environment.py \
rpy/robjects/language.py \
rpy/robjects/lib \
rpy/robjects/methods.py \
rpy/robjects/numpy2ri.py \
rpy/robjects/packages.py \
rpy/robjects/packages_utils.py \
rpy/robjects/pandas2ri.py \
rpy/robjects/vectors.py
- |
pytest \
--cov=rpy2.rinterface_lib \
--cov=rpy2.rinterface \
--cov=rpy2.rlike \
--cov=rpy2.ipython \
--cov=rpy2.robjects \
tests
after_success:
- codecov