From f7090bb155ffbd07c2616133df11bcc51fa8c1fe Mon Sep 17 00:00:00 2001 From: Noah Potash Date: Sun, 22 May 2016 19:34:35 -0400 Subject: [PATCH] Added travis ci config --- .travis.yml | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 3 ++- 2 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..e733640bf --- /dev/null +++ b/.travis.yml @@ -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!" diff --git a/README.md b/README.md index 96a901c4e..638bacbb5 100644 --- a/README.md +++ b/README.md @@ -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/)