forked from abess-team/abess
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
57 lines (48 loc) · 1.37 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
matrix:
include:
- language: R
apt_packages:
- libxml2-dev
- python3
- python3-pip
r_packages:
- xml2
- covr
before_install:
- cd R-package
cache: packages
after_success:
- cd ..
- ls *
- travis_wait 60 Rscript -e 'library(covr); x <- package_coverage(path = "./R-package", quiet = FALSE, type = c("vignettes", "examples", "tests"), function_exclusions = "\\.onUnload"); to_cobertura(x, "rpackage.xml")'
- ls *
- pip install --upgrade pip
- pip3 install --user codecov
- codecov -F rpackage -f rpackage.xml
- dist: xenial
language: python
python:
- "3.7"
addons:
apt:
packages:
- swig
# command to install dependencies
install:
- pip install -r ./python/requirements.txt
- pip install pytest
- pip install pytest-cov
- pip install scikit-learn
- pip install lifelines
- pip install pandas
- pip install codecov
- pip install gcovr
- export CFLAGS="--coverage"
- python ./python/setup.py install
# command to run tests
script:
- ls *
- travis_wait 120 pytest ./python --cov=abess --cov-report=xml
- gcovr ./python/src/ --xml
- ls *
- codecov -F Python