forked from linq2db/linq2db
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
62 lines (49 loc) · 2.17 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
language: csharp
sudo: required
dist: trusty
addons:
postgresql: "9.6"
apt:
packages:
- gettext
- libcurl4-openssl-dev
- libicu-dev
- libssl-dev
- libunwind8
- zlib1g
dotnet: 1.0.0-preview2-003156
#dotnet: 1.0.0-preview2-1-003177
mono:
- latest
os:
- linux
# - osx
osx_image: xcode7.3
before_install:
- if test "$TRAVIS_OS_NAME" == "osx"; then brew update; brew install openssl; ln -s /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib/; ln -s /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/; fi
before_install:
- chmod +x build.sh
install:
- nuget install NUnit.Runners -Version 3.5.0 -OutputDirectory testrunner
#services:
# - mysql
# - postgresql
before_script:
- if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then sudo service postgresql start; fi
- nuget restore linq2db.Mono.sln
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PG_DATA=$(brew --prefix)/var/postgres; fi
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then pg_ctl -w start -l postgres.log --pgdata ${PG_DATA}; fi
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then createuser -s postgres; fi
script:
- if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then mysql -e 'CREATE DATABASE TestData;'; fi
- if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then psql -c 'create database testdata;' -U postgres; fi
- if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then mv Tests/Linq/TravisDataProviders.txt Tests/Linq/UserDataProviders.txt; fi
- if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then mv Tests/Linq/TravisDataProviders.Core.txt Tests/Linq/UserDataProviders.Core.txt; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then mv Tests/Linq/TravisDataProviders.Osx.txt Tests/Linq/UserDataProviders.txt; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then mv Tests/Linq/TravisDataProviders.Osx.Core.txt Tests/Linq/UserDataProviders.Core.txt; fi
- ./build.sh
#- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then psql -c 'create database testdata;' -U postgres; fi
# - xbuild /p:Configuration=ReleaseMono linq2db.Mono.sln
# - mono ./testrunner/NUnit.ConsoleRunner.3.5.0/tools/nunit3-console.exe Tests/Linq/bin/ReleaseMono/linq2db.Tests.dll --where "cat != WindowsOnly"
#before_install:
# - sudo apt-get install nunit3-console