diff options
author | Jie Luo <anandolee@gmail.com> | 2015-05-20 10:20:37 -0700 |
---|---|---|
committer | Jie Luo <anandolee@gmail.com> | 2015-05-20 10:20:37 -0700 |
commit | f71eea88736657ab9bc3ca6e0d86742c63743861 (patch) | |
tree | 911ab43a409b935f480f8925302ea14db0d7b4aa | |
parent | 4324bf6bf2d217a478356ccc190acb21347b63b3 (diff) | |
parent | ddb36efe18cd569bf8f4f47c1bff7d0b97ac3e59 (diff) | |
download | protobuf-f71eea88736657ab9bc3ca6e0d86742c63743861.tar.gz protobuf-f71eea88736657ab9bc3ca6e0d86742c63743861.tar.bz2 protobuf-f71eea88736657ab9bc3ca6e0d86742c63743861.zip |
Merge pull request #399 from jtattermusch/csharp_travis
C# travis integration
-rw-r--r-- | .travis.yml | 1 | ||||
-rwxr-xr-x | travis.sh | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index bfe63d1d..9dc99b4e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,6 +8,7 @@ script: env: - CONFIG=cpp - CONFIG=cpp_distcheck + - CONFIG=csharp - CONFIG=java_jdk6 - CONFIG=java_jdk7 - CONFIG=java_oracle7 @@ -14,6 +14,19 @@ build_cpp_distcheck() { make distcheck -j2 } +build_csharp() { + # Install latest version of Mono + sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF + echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list + echo "deb http://download.mono-project.com/repo/debian wheezy-libtiff-compat main" | sudo tee -a /etc/apt/sources.list.d/mono-xamarin.list + sudo apt-get update -qq + sudo apt-get install -qq mono-devel referenceassemblies-pcl nunit + wget www.nuget.org/NuGet.exe -O nuget.exe + + (cd csharp/src; mono ../../nuget.exe restore) + csharp/buildall.sh +} + use_java() { if [ `uname` != "Linux" ]; then # It's nontrivial to programmatically install a new JDK from the command @@ -135,6 +148,7 @@ build_jruby() { if [ "$#" -ne 1 ]; then echo " Usage: $0 { cpp | + csharp | java_jdk6 | java_jdk7 | java_oracle7 | |