-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
65 lines (59 loc) · 2.46 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
###########
# Travis CI configuration file
# - Enables automated testing on Travis CI web servers
# - Tests activate on push to GitHub
###########
## R CONFIGURATION
language: r
## R PACKAGE SETTINGS
r_packages:
- covr
cache: packages
## PARALLEL OS TEST SETTINGS
# - This enables parallel testing of osx and linux on push to GitHub
matrix:
include:
## LINUX SETTINGS
- r: bioc-devel
os: linux
dist: xenial
## APT PACKAGE SETTINGS
addons:
apt:
update: true
packages:
- x11proto-xf86vidmode-dev
- tcl8.5-dev
- tk8.5-dev
- xvfb
## TESTING COMMANDS
script:
- R CMD build . --resave-data --compact-vignettes=gs+qpdf
- travis_wait 30 xvfb-run R CMD check *.tar.gz # `xvfb-run` executes the command inside the xvfb virtual GUI to catch any renders
## OSX SETTINGS
- r: release
os: osx
osx_image: xcode11
## OSX HOMEBREW PACKAGES
# - Dependencies for virtual GUI
before_install:
- brew update
- brew cask reinstall xquartz
- brew install tcl-tk
- brew link --overwrite --force tcl-tk; brew unlink tcl-tk
## VIRTUAL GUI
# - Launches virtual GUI to catch renders on the headless test server
before_script:
- "export DISPLAY=:99.0"
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then ( sudo Xvfb :99 -ac -screen 0 1024x768x8; echo ok ) & fi
## TESTING COMMANDS
script:
- R CMD build . --resave-data --no-build-vignettes # V
- travis_wait 30 R CMD check *.tar.gz --no-build-vignettes # `travis_wait 30` increases the maximum time without printing to log from 10 to 30 minutes
# POST TEST COMMANDS
after_success:
- travis_wait 30 Rscript -e 'library(covr);codecov(type="all")' # Calculating code coverage
notifications:
slack:
rooms:
secure: bkZRdDrN940D/pE66l6rf3t0015/VbB8MxOrphBjrxXxLw1KomT0jHYqNDn1Ly8XimdGIRnR8KiMeI/e1AHld5h1DF0ccnsuA4NvAfgyFDxOjMC1KBJ6FswdxKNPgInYxrfKrsC2m8pUmOoVI5SHq6tz99CbpeMl7iOAgMD5rMs5uXLCTILObKKqg7ZNF5RHHuf6D4lZQwmH0g7T0fYU74gN583mkQyNuJCK0HOkNBjCl+TCGZNHDzrH4JrW6sdnEhYbfZrJi3lYSCJsOyGmkMDE6TAocrXhJvDU3p2boCTDn8NObGeNEr4T8GmnFLMyYtNvHuBAnITWcSXjJmMScuzHajNXJ2/CGjRhgQxL5jL2UIg6jvFKwKUse4e+gTmwiapo2sele+g6oJDQyz9eiQCHZkPaTCoPuqkpDeo7WQo41V5VGPyPGCGqglUFk0STBDk7n2TGCatzfuxOO7qGp+00VLp0sm3iI4W8fjJLBb9pkijeq87NTWRobqvo7A5emh3n1yY8/eScvog6bd2ZKmpTqhKRMzEIGCiwktGwHhsvGunr4lARiPH6/9uFochdlLsfCKwaCx/fILw2zdoignsx50B5a06ycDh2pvuoRut1hN1+3lfyTaqHMeU2UNRY0mIS0m+27QsTZH7vSI0FjUVFWaGUB1ChHKODjlax9HM=