Skip to content

Commit 546deeb

Browse files
Merge pull request #9 from SapientGuardian/travis_config
Add Travis config for CI builds on Linux and OSX
2 parents e558b4b + f7090bb commit 546deeb

File tree

2 files changed

+61
-1
lines changed

2 files changed

+61
-1
lines changed

.travis.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
---
2+
# Configuration taken and modified from https://github.com/maxmind/MaxMind-DB-Reader-dotnet/blob/master/.travis.yml
3+
sudo: false
4+
language: csharp
5+
# dotnet cli requires Ubuntu 14.04
6+
sudo: required
7+
dist: trusty
8+
9+
# dotnet cli requires OSX 10.10
10+
osx_image: xcode7.1
11+
12+
addons:
13+
apt:
14+
packages:
15+
- libunwind8
16+
17+
os:
18+
- osx
19+
- linux
20+
21+
env:
22+
matrix:
23+
- CLI_VERSION: Latest
24+
Configuration: Debug
25+
Framework: netcoreapp1.0
26+
- CLI_VERSION: Latest
27+
Configuration: Release
28+
Framework: netcoreapp1.0
29+
30+
before_install:
31+
# Download script to install dotnet cli
32+
- 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
33+
34+
- export DOTNET_INSTALL_DIR="~/dotnet"
35+
36+
# Add dotnet to PATH
37+
- export PATH="$DOTNET_INSTALL_DIR:$PATH"
38+
39+
install:
40+
- git submodule update --init --recursive
41+
- which dotnet;
42+
if [ $? -eq 0 ]; then
43+
echo "Using dotnet:";
44+
dotnet --info;
45+
else
46+
echo "dotnet.exe not found"
47+
exit 1;
48+
fi
49+
50+
# Restore dependencies
51+
- dotnet restore
52+
53+
- FrameworkLibsMoniker="netstandard1.3"
54+
55+
# Build projects
56+
- dotnet build -c $Configuration -f $FrameworkLibsMoniker ./Source/MySql.Data
57+
58+
script:
59+
- echo "This would be a good time to run tests!"

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

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

5-
[![Build status](https://ci.appveyor.com/api/projects/status/ve9qdbrktb29hs9w?svg=true)](https://ci.appveyor.com/project/SapientGuardian/mysql-connector-net-netstandard1-5)
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)
6+
[![Linux/OSX Build Status](https://travis-ci.org/SapientGuardian/mysql-connector-net-netstandard.png)](https://travis-ci.org/SapientGuardian/mysql-connector-net-netstandard)
67

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

0 commit comments

Comments
 (0)