-
Notifications
You must be signed in to change notification settings - Fork 46
/
.travis.yml
executable file
·76 lines (63 loc) · 1.59 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
matrix:
include:
- language: r
sudo: false
cache: packages
warnings_are_errors: false
r:
- release
addons:
apt:
packages:
- libgsl0-dev
- libeigen3-dev
r_packages:
- devtools
- testthat
- Rcpp
before_install:
- cd R-Project
script:
- printf "Starting install and test with devtools.\n\n"
- Rscript -e "Rcpp::compileAttributes()"
## The next 2 lines were a fix for lines 35-6
- Rscript -e "install.packages('./', type = 'source', repos = NULL)"
- Rscript -e "devtools::test()"
## The following won't work until we fix the ../../packedForest -> R-Project/src problem
#- printf "Starting BUILD and CHECK --as-cran\n\n"
#- R CMD build --resave-data .
#- R CMD check --as-cran --no-manual rerf*.tar.gz
- Rscript travisTest/test-on-prior-release.R
- language: cpp
dist: xenial
sudo: false
compiler:
- gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6
- libeigen3-dev
before_install:
- cd packedForest
script:
- make
- cd test
- make
- language: python
dist: xenial
python:
- "3.6"
addons:
apt:
packages:
- libeigen3-dev
before_install: cd Python
install:
- pip install -r requirements.txt
- pip install -e .
- cd ..
script:
- pytest