forked from go-goracle/goracle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
38 lines (29 loc) · 872 Bytes
/
.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
---
language: go
sudo: required
services:
- docker
go:
- "1.11.1"
go_import_path: gopkg.in/goracle.v2
env:
global:
- GORACLE_DRV_TEST_USERNAME=test
- GORACLE_DRV_TEST_PASSWORD=test
- GORACLE_DRV_TEST_DB=oracle.gthomas.eu:49161/xe
before_install:
- docker pull sergeymakinen/oracle-instant-client:12.2
install:
- go get -t .
script:
- go test -c -covermode=atomic .
- docker run -ti --rm
-e GORACLE_DRV_TEST_USERNAME=$GORACLE_DRV_TEST_USERNAME
-e GORACLE_DRV_TEST_PASSWORD=$GORACLE_DRV_TEST_PASSWORD
-e GORACLE_DRV_TEST_DB=$GORACLE_DRV_TEST_DB
-v $(pwd)/goracle.v2.test:/goracle.v2.test:ro
sergeymakinen/oracle-instant-client:12.2
/goracle.v2.test -test.coverprofile=coverage.txt -test.v
after_success:
- bash <(curl -s https://codecov.io/bash)
# vim: set et: