-
Notifications
You must be signed in to change notification settings - Fork 30
/
.travis.yml
31 lines (28 loc) · 1.08 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
services:
- docker
before_install:
- docker pull microsoft/mssql-server-linux:latest
- docker network create sqlserver_net
- |
docker run -e 'ACCEPT_EULA=Y' -e 'MSSQL_SA_PASSWORD=Password12!' \
--network sqlserver_net -p 1433:1433 --name mssqldb -d microsoft/mssql-server-linux
- sleep 90
- docker cp inst/setup.sql mssqldb:.
- |
docker exec -t mssqldb /opt/mssql-tools/bin/sqlcmd \
-S localhost -U SA -P 'Password12!' \
-i setup.sql
install:
- docker build -t rsqlserver -f .ci/Dockerfile .
script:
- |
docker run -e CI=true -e TRAVIS=true -e CONTINUOUS_INTEGRATION=true \
-t --network sqlserver_net --name pkgcheck rsqlserver Rscript \
-e 'devtools::install_dev_deps()' \
-e 'devtools::check(document = FALSE, check_dir = ".")'
- docker cp pkgcheck:/usr/local/R/rsqlserver.Rcheck/00check.log .
- cat 00check.log
- if cat 00check.log | grep -q ERROR ; then exit 1; fi
# Choose to fail if warnings are present in R CMD CHECK (comment this out for now)
#- if cat 00check.log | grep -q WARNING ; then exit 1; fi
- exit 0