-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.yml
104 lines (92 loc) · 2.56 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
language: r
r:
# - bioc-devel
- bioc-release
# warnings_are_errors: true
cache: packages
services:
- docker
addons:
apt:
packages:
- libprotobuf-dev
- libapparmor-dev
- protobuf-compiler
- libcurl4-openssl-dev
- libmagick++-dev
r_packages:
- covr
- data.table
- ggplot2
- testthat
- knitr
- rmarkdown
- httpuv
- opencpu
- protolite
- Rook
- unix
- magick
os:
- linux
- osx
osx_image: xcode11
bioc_required: true
bioc_packages:
- BiocCheck
- GEOquery
- limma
- rhdf5
- BiocStyle
before_install:
# - if [ ${TRAVIS_OS_NAME} = 'osx' ]; then brew unlink python; brew install protobuf; fi
- R -e 'install.packages("devtools")'
script:
- R CMD build .
- FILE=$(ls -1t *.tar.gz | head -n 1)
- R CMD check "$FILE"
- bash inst/test_js.sh
after_script:
- FILE=$(ls -1t *.tar.gz | head -n 1)
- Rscript -e "library(BiocCheck); BiocCheck(\"${FILE}\")"
after_success:
- Rscript -e 'covr::codecov()'
notifications:
slack:
rooms:
- sysbio1:Kt2QCRqnbzJpNE8TvOvgwEMz#phantasus
jobs:
include:
- stage: Docker build
env: DOCKER_TAG="$TRAVIS_BRANCH-$TRAVIS_BUILD_NUMBER"
language: minimal
before_install: skip
after_script: skip
after_success: skip
r_packages: skip
install: skip
script: if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$TRAVIS_BRANCH" == "master" ]; then
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
docker build -t dzenkova/phantasus --build-arg PHANTASUS_BUILD=$DOCKER_TAG --build-arg GITHUB_PAT=$GITHUB_PAT . ;
docker tag dzenkova/phantasus dzenkova/phantasus:$DOCKER_TAG ;
docker push dzenkova/phantasus;
fi
- stage: Docker build
env: DOCKER_TAG="$TRAVIS_BRANCH-$TRAVIS_BUILD_NUMBER"
language: minimal
before_install: skip
after_script: skip
after_success: skip
r_packages: skip
install: skip
script: if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$TRAVIS_BRANCH" == "develop" ]; then
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
docker build --build-arg PHANTASUS_BUILD=$DOCKER_TAG --build-arg GITHUB_PAT=$GITHUB_PAT -t dzenkova/phantasus:develop . ;
docker tag dzenkova/phantasus:develop dzenkova/phantasus:$DOCKER_TAG ;
docker push dzenkova/phantasus:develop;
docker push dzenkova/phantasus:$DOCKER_TAG;
fi
# Something always happens to osx bioc-devel builds
exclude:
- os: osx
r: bioc-devel