[csharp] update travis for dotnet

This commit is contained in:
Dong Xie 2017-01-25 00:24:36 +00:00
parent 4c4fdc0f83
commit 09d45f5d6e
4 changed files with 33 additions and 0 deletions

View File

@ -1,3 +1,4 @@
dist: trusty
sudo: true sudo: true
language: java language: java
@ -45,6 +46,9 @@ matrix:
- os: linux - os: linux
jdk: oraclejdk7 jdk: oraclejdk7
env: TARGET=csharp env: TARGET=csharp
- os: linux
jdk: oraclejdk7
env: TARGET=dotnet
- os: linux - os: linux
jdk: oraclejdk7 jdk: oraclejdk7
env: TARGET=python2 env: TARGET=python2
@ -59,6 +63,7 @@ matrix:
env: TARGET=go env: TARGET=go
before_install: before_install:
- ./.travis/before-install-mvn3.3.9-trusty.sh
- ./.travis/before-install-$TRAVIS_OS_NAME-$TARGET.sh - ./.travis/before-install-$TRAVIS_OS_NAME-$TARGET.sh
script: script:

View File

@ -0,0 +1,10 @@
#!/bin/bash
set -euo pipefail
sudo sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ trusty main" > /etc/apt/sources.list.d/dotnetdev.list'
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 417A0893
sudo apt-get update
sudo apt-get install dotnet-dev-1.0.0-preview2.1-003177

View File

@ -0,0 +1,14 @@
#!/bin/sh
set -ex
wget http://apache.mirrors.lucidnetworks.net/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz && \
wget https://www.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz.md5 && \
echo "$(cat apache-maven-3.3.9-bin.tar.gz.md5) apache-maven-3.3.9-bin.tar.gz" > apache-maven-3.3.9-bin.tar.gz.md5 && \
md5sum -c *.md5
sudo rm -rf /usr/local/maven/ && sudo mkdir -p /usr/local/maven && \
sudo tar xzvf apache-maven-3.3.9-bin.tar.gz -C /usr/local/maven --strip-components=1
mvn -v

4
.travis/run-tests-dotnet.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
mvn -q -Dparallel=methods -DthreadCount=4 -Dtest=csharp.* -DargLine="-Dantlr-csharp-netstandard=true" test