forked from fsprojects/SQLProvider
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (23 loc) · 785 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
language: csharp
dist: trusty
sudo: false # use the new container-based Travis infrastructure
services:
- postgres
addons:
postgresql: "9.5"
mono:
- 5.0.1
os:
- linux
- osx
before_script:
# Fixes PostgreSQL not starting on OSX. See https://github.com/travis-ci/travis-ci/issues/1875#issuecomment-263847183
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then rm -rf /usr/local/var/postgres; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then initdb /usr/local/var/postgres; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then pg_ctl -D /usr/local/var/postgres start; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then until createuser -s postgres; do echo "Postgres is unavailable - sleeping"; sleep 0.05; done; fi
script:
- ./build.sh All
branches:
except:
- gh-pages