This repository has been archived by the owner on Dec 30, 2020. It is now read-only.
forked from bhklab/genefu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
65 lines (58 loc) · 2.45 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:
secure: FP4zkuFh6aT3LkhWIFLC/BnjWPWHmQLr3IzdBacalRFhebbUVB3uBq8bEghNUq2K6ESlt6QTBYhjxnEJeSHVZ6UiaI5tFzQ3Cxq6FwI4NMPPrnCPOx6P8a9olzmjZrCfYUxF7zHPNZzNxh5DBgUysDAPRc+BOTK7TV4vRlIyE2Qlrz7FG/MWh7/g5ypjW+zCDz5+knCmvXlDcl+XQcIDEqVn016tT93+mADe6kdsPVzb6g8OTOckgBuINvMK9AZhlIHsM9F4EhHmZZLyD4+FuVnSN6PnIGCkKKUUMOEhyhqOBcl9IQRItdfH/9WINSk9DfgR8BOciFB5QTESo23vjlP3RkRnZFfbJP9tB2Bc5DMk8S+Ba+9Up9QOFk9GWkHdvyiZjF28XPBRz0vzshv5a6v//mJLWueBUZrz4Q1qy/axQLq5z6+HaMtuoZpa9cZOs76UsG4ybC9Hwjrh6phUlaTRwnwHFps2PqpxER3Xrs1EpFsmV5jtUGG9kZ7dufc24hsrsIO6lY2cOcAx7F/zypjW5//UNkTRcxCqz1h1YBFpV1eMCagNCR5eMpOUjHRQQPOCBTKZO0VuVyk9Ib45y/QJAWUG1df8jmDJ1dGlr+2okJAHzOeuIZSt75sIr8jpRxetdqfR1F/CLmDewpPc9uFt5hspIx2xkAHW/zKpTTw=