aboutsummaryrefslogtreecommitdiff
path: root/travis.sh
diff options
context:
space:
mode:
authorJan Tattermusch <jtattermusch@google.com>2015-05-18 17:34:02 -0700
committerJan Tattermusch <jtattermusch@google.com>2015-05-18 20:28:48 -0700
commitddb36efe18cd569bf8f4f47c1bff7d0b97ac3e59 (patch)
treee0a575912953246ebe7e7d94e3d3c0e7fa79dc7e /travis.sh
parenta8b38c598d7f65b281a72809b28117afdb760931 (diff)
downloadprotobuf-ddb36efe18cd569bf8f4f47c1bff7d0b97ac3e59.tar.gz
protobuf-ddb36efe18cd569bf8f4f47c1bff7d0b97ac3e59.tar.bz2
protobuf-ddb36efe18cd569bf8f4f47c1bff7d0b97ac3e59.zip
csharp travis integration
Diffstat (limited to 'travis.sh')
-rwxr-xr-xtravis.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/travis.sh b/travis.sh
index 24e0a4e0..26efc879 100755
--- a/travis.sh
+++ b/travis.sh
@@ -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 |