blob: 3acd78a208a5859887711562b870a3919417e9a0 [file] [log] [blame]
Volodymyr Gotrab587a122016-09-14 19:18:48 -05001#!/usr/bin/env bash
2
3#
4# Licensed to the Apache Software Foundation (ASF) under one
5# or more contributor license agreements. See the NOTICE file
6# distributed with this work for additional information
7# regarding copyright ownership. The ASF licenses this file
8# to you under the Apache License, Version 2.0 (the
9# "License"); you may not use this file except in compliance
10# with the License. You may obtain a copy of the License at
11#
12# http://www.apache.org/licenses/LICENSE-2.0
13#
14# Unless required by applicable law or agreed to in writing,
15# software distributed under the License is distributed on an
16# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17# KIND, either express or implied. See the License for the
18# specific language governing permissions and limitations
19# under the License.
20#
21
22#exit if any command fails
23#set -e
24
25cd ThriftTest
26../../../compiler/cpp/thrift -gen netcore:wcf -r ../../ThriftTest.thrift
27cd ..
28
29
30# Due to a known issue with "dotnet restore" the Thrift.dll dependency cannot be resolved from cmdline
31# For details see https://github.com/dotnet/cli/issues/3199 and related tickets
32# The problem does NOT affect Visual Studio builds.
33
34# workaround for "dotnet restore" issue
35cp -u -p -r ..\..\lib\netcore\Thrift .\Thrift
36
37dotnet --info
38dotnet restore
39
40# dotnet test ./test/TEST_PROJECT_NAME -c Release -f netcoreapp1.0
41
42# Instead, run directly with mono for the full .net version
43dotnet build **/*/project.json -r win10-x64
44dotnet build **/*/project.json -r osx.10.11-x64
45dotnet build **/*/project.json -r ubuntu.16.04-x64
46
47#revision=${TRAVIS_JOB_ID:=1}
48#revision=$(printf "%04d" $revision)
49
50#dotnet pack ./src/PROJECT_NAME -c Release -o ./artifacts --version-suffix=$revision
51
52# workaround for "dotnet restore" issue
53rm -r .\Thrift
54