Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
---
# 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:
# Download script to install dotnet cli
- curl -sSL https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0-preview1/scripts/obtain/dotnet-install.sh | bash /dev/stdin --version 1.0.0-preview1-002702 --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!"
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

##This is a MySQL client Library targeting netstandard 1.3. It is a fork of the official Oracle MySQL Connector/Net library.

[![Build status](https://ci.appveyor.com/api/projects/status/ve9qdbrktb29hs9w?svg=true)](https://ci.appveyor.com/project/SapientGuardian/mysql-connector-net-netstandard1-5)
[![Windows Build status](https://ci.appveyor.com/api/projects/status/ve9qdbrktb29hs9w?svg=true)](https://ci.appveyor.com/project/SapientGuardian/mysql-connector-net-netstandard1-5)
[![Linux/OSX Build Status](https://travis-ci.org/SapientGuardian/mysql-connector-net-netstandard.png)](https://travis-ci.org/SapientGuardian/mysql-connector-net-netstandard)

[NuGet Package](https://www.nuget.org/packages/SapientGuardian.MySql.Data/)

Expand Down