-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
65 lines (54 loc) · 1.43 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
# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r
language: r
sudo: required
os:
- linux
dist:
- xenial
r:
- oldrel
- release
- devel
addons:
apt:
packages:
- libhdf5-dev
cache:
- packages
- apt
- directories:
- $HOME/.cache/pip
before_install:
- curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
- sudo python3 get-pip.py
- mkdir -p ~/bin && export PATH=~/bin/:$PATH
- ln -s $(which python3) ~/bin/python
- ln -s $(which pip3) ~/bin/pip
- sudo pip install --upgrade pip
- pip install --user -q phate
install:
- cd python; pip install --user -q .
- cd ../Rmagic; R -e 'install.packages("devtools", repos="http://cloud.r-project.org")'
- R_VERSION=$(R -e "message(R.version[['minor']])" 2>&1 1>/dev/null | head -c 1)
- if [ $R_VERSION -lt 5 ]; then export _R_CHECK_FORCE_SUGGESTS_="FALSE"; else R -e "devtools::install_github(repo = 'satijalab/seurat', ref = 'release/3.0')"; fi
- R -e 'devtools::install_deps(dep = T, upgrade="always")'
- cd ..
script:
- cd Rmagic; R CMD build .
- R CMD check *tar.gz
- cd ../python; pip install --user -q .[test]
- python setup.py test
- pip install --user -q .[doc]
- cd doc; make html
- cd ..
deploy:
provider: pypi
user: scottgigante
password: ${PYPI_PASSWORD}
distributions: sdist bdist_wheel
skip_existing: true
skip_cleanup: true
on:
tags: true
branch: master
warnings_are_errors: true