blob: 1a58b749fa720c8688728674456689298bd61290 [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
25pushd Tests/Thrift.PublicInterfaces.Compile.Tests
26for file in *.thrift
27do
28 ../../../../compiler/cpp/thrift -gen netcore:wcf -r "$file"
29done
30../../../../compiler/cpp/thrift -gen netcore:wcf -r ../../../../contrib/fb303/if/fb303.thrift
31../../../../compiler/cpp/thrift -gen netcore:wcf -r ../../../../test/ThriftTest.thrift
32popd
33
34dotnet --info
35
36dotnet restore
37
38# dotnet test ./test/TEST_PROJECT_NAME -c Release -f netcoreapp1.0
39
40# Instead, run directly with mono for the full .net version
41dotnet build **/*/project.json -r win10-x64
42dotnet build **/*/project.json -r osx.10.11-x64
43dotnet build **/*/project.json -r ubuntu.16.04-x64
44
45#revision=${TRAVIS_JOB_ID:=1}
46#revision=$(printf "%04d" $revision)
47
48#dotnet pack ./src/PROJECT_NAME -c Release -o ./artifacts --version-suffix=$revision