generated from ANTsX/ANTsRNet
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
67 lines (57 loc) · 1.98 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
# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r
language: r
dist: xenial
services:
- xvfb
sudo: false
warnings_are_errors: false # setting this false b/c of rcpp attribute error
env:
global:
- KERAS_BACKEND="tensorflow"
- KERAS_IMPLEMENTATION="tensorflow"
addons:
apt:
packages:
- python3
- libstdc++6
cache:
packages: true
directories:
- $HOME/.keras
- $HOME/.cache/pip
before_install:
- tlmgr install index
- export PACKAGE_NAME=ANTsRNet
- wget -O travis_helpers.sh http://bit.ly/travis_helpers
- cat travis_helpers.sh; source travis_helpers.sh
- rm travis_helpers.sh
- v8_install ;
- Rscript -e 'install.packages("rsvd")'
- Rscript -e 'install.packages("magic")'
- Rscript -e 'install.packages(c("psych","colormap"))'
- Rscript -e 'install.packages("RcppEigen")'
- gh_binary_install stnava/ITKR ANTsX/ANTsRCore ANTsX/ANTsR
before_script:
# - pyenv global 3.6
# - pip install --upgrade pip==9.0.3
# - pip2.7 install -q --upgrade --ignore-installed --user travis virtualenv
# - pip2.7 install -q --user setuptools wheel
# - pip2.7 install -q --upgrade --ignore-installed --user travis keras h5py pyyaml requests Pillow scipy theano tensorflow
- export TRAVIS_PYTHON_VERSION=3.6
- setup_python ${TRAVIS_PYTHON_VERSION} false;
- export CI_PYTHON_VERSION=${TRAVIS_PYTHON_VERSION}
- export PATH=/opt/python/${TRAVIS_PYTHON_VERSION}/bin:$PATH
- ls ~/virtualenv/python${TRAVIS_PYTHON_VERSION}/bin || exit 0 ;
- source ~/virtualenv/python${TRAVIS_PYTHON_VERSION}/bin/activate || exit 0;
- python --version
- python3 --version
- pip --version
- install_python_requirements -q ;
# - R -e 'tensorflow::install_tensorflow(version = "2.0.0")'
# before_cache: Rscript -e 'remotes::install_cran("pkgdown")'
# deploy:
# provider: script
# script: Rscript -e 'pkgdown::deploy_site_github()'
# skip_cleanup: true
before_deploy:
- Rscript -e 'covr::codecov(type = "all", commentDonttest = FALSE)'