forked from aaren/notedown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
58 lines (45 loc) · 933 Bytes
/
.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
language: python
dist: precise
sudo: no
python:
- 2.7
- 3.5
- 3.6
env:
matrix:
- PEP=false
matrix:
include:
- python: 2.7
env: PEP=true
addons:
apt:
sources:
- r-packages-precise
packages:
- r-base-dev
cache:
directories:
- ~/Rlib
before_install:
- R --version
- Rscript --version
# set user install directory and CRAN repo
- mkdir -p ~/Rlib
- ls ~/Rlib
- echo 'R_LIBS=~/Rlib' > ~/.Renviron
- echo 'options(repos = "http://cran.rstudio.com")' > ~/.Rprofile
- cat ~/.Renviron
- cat ~/.Rprofile
# install knitr (takes a while to build everything)
- Rscript -e "install.packages('knitr', dependencies=TRUE)"
# check that knitr actually installed
- Rscript -e 'require(knitr)'
- Rscript -e '.libPaths()'
- ls ~/Rlib
install:
- pip install pep8
- pip install .
script:
- if $PEP; then pep8 notedown; fi
- if ! $PEP; then nosetests; fi