-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
56 lines (56 loc) · 1.76 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
language: r
sudo: required
cache: packages
matrix:
include:
- python:2.7
- python:3.6
addons:
apt:
update: true
packages:
- python2.7
- python-pip
- python-dev
- build-essential
- zlib1g-dev
before_install:
- sudo pip install gym
- sudo pip install gym[atari]
- sudo pip install tensorflow==1.1.0
- sudo pip install numpy==1.12.1
- sudo pip install h5py==2.7.0
env:
matrix:
- _R_CHECK_LENGTH_1_CONDITION_=true
r:
- devel
- release
r_github_packages:
- jimhester/covr
- hadley/pkgdown
- rstudio/keras
before_script:
- R --no-save <<< 'library("devtools"); document()'
- R --no-save <<< 'library("tensorflow"); install_tensorflow()'
- R --no-save <<< 'library("keras"); install_keras()'
after_success:
- 'if [[ "$TRAVIS_PULL_REQUEST" == "false" && "$TRAVIS_BRANCH" == "master" && "$TRAVIS_R_VERSION_STRING" == "release" && "$TRAVIS_EVENT_TYPE" != "cron" ]] ; then
R --no-save <<< "devtools::install(); pkgdown::build_site()";
git checkout master;
export TRAVIS_COMMIT_MSG="$(git log --format=%B --no-merges -n 1)";
git config --global user.name "Travis CI";
git config --global user.email "$COMMIT_AUTHOR_EMAIL";
git config credential.helper "store --file=.git/credentials";
echo "https://${GH_TOKEN}:@github.com" >> .git/credentials;
git config push.default matching;
git add --force man/*;
git add --force README.md;
git add --force docs/*;
git rm -r --cached $(find . -type d -name "*_cache");
git commit man DESCRIPTION NAMESPACE README.md docs -m "update auto-generated documentation [ci skip]" -m "$TRAVIS_COMMIT_MSG" || true;
git push;
fi;'
- 'if [[ "$TRAVIS_R_VERSION_STRING" == "devel" && "$TRAVIS_EVENT_TYPE" != "cron" ]] ; then
Rscript -e "covr::coveralls()";
fi;'