forked from mysql/mysql-connector-net
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path.travis.yml
60 lines (48 loc) · 1.4 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
---
# Configuration taken and modified from https://github.com/maxmind/MaxMind-DB-Reader-dotnet/blob/master/.travis.yml
sudo: false
language: csharp
# dotnet cli requires Ubuntu 14.04
sudo: required
dist: trusty
# dotnet cli requires OSX 10.10
osx_image: xcode7.1
addons:
apt:
packages:
- libunwind8
os:
- osx
- linux
env:
matrix:
- CLI_VERSION: Latest
Configuration: Debug
Framework: netcoreapp1.0
- CLI_VERSION: Latest
Configuration: Release
Framework: netcoreapp1.0
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install openssl && brew link --force openssl ; fi
# Download script to install dotnet cli
- curl -sSL https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0-preview2/scripts/obtain/dotnet-install.sh | bash /dev/stdin --version 1.0.0-preview2-003121 --install-dir ~/dotnet
- export DOTNET_INSTALL_DIR="~/dotnet"
# Add dotnet to PATH
- export PATH="$DOTNET_INSTALL_DIR:$PATH"
install:
- git submodule update --init --recursive
- which dotnet;
if [ $? -eq 0 ]; then
echo "Using dotnet:";
dotnet --info;
else
echo "dotnet.exe not found"
exit 1;
fi
# Restore dependencies
- dotnet restore
- FrameworkLibsMoniker="netstandard1.3"
# Build projects
- dotnet build -c $Configuration -f $FrameworkLibsMoniker ./Source/MySql.Data
script:
- echo "This would be a good time to run tests!"