-
Notifications
You must be signed in to change notification settings - Fork 16
/
.travis.yml
43 lines (35 loc) · 1.35 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
# based on https://github.com/ravendb/ravendb-ruby-client/blob/v4.0/.travis.yml
sudo: required
dist: trusty
language: go
notifications:
email:
recipients:
on_success: always
on_failure: always
go:
- 1.11
# TODO: maybe use latest build instead of latest stable
# - wget -O RavenDB.tar.bz2 https://daily-builds.s3.amazonaws.com/RavenDB-5.1.11-linux-x64.tar.bz2
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y libunwind8 wget libicu52 libssl-dev curl unzip gettext libcurl4-openssl-dev zlib1g uuid-dev bzip2 openssl sed
- mkdir ./certs; cd ./certs
- sudo cp ca.crt /usr/local/share/ca-certificates/ca.crt
- sudo update-ca-certificates
- cd ..
# when changing version, update RAVENDB_SERVER_VERSION in travis_run_tests.sh
- wget -O RavenDB.tar.bz2 https://daily-builds.s3.amazonaws.com/RavenDB-5.1.11-linux-x64.tar.bz2
- tar xvjf RavenDB.tar.bz2
- rm RavenDB.tar.bz2
- ls -lah RavenDB
# Travis aborts the test if there's no output in 10 mins
# go test seems to hijack os.Stdout and buffers everything until the end,
# even with -v flag.
# travis_wait is a "keep alive" that prints to stdout
# https://docs.travis-ci.com/user/common-build-problems/#my-builds-are-timing-out
script:
- travis_wait 30 ./scripts/travis_run_tests.sh
after_success:
- bash <(curl -s https://codecov.io/bash)