Volodymyr Gotra | b587a12 | 2016-09-14 19:18:48 -0500 | [diff] [blame] | 1 | #!/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 | |
| 25 | pushd Tests/Thrift.PublicInterfaces.Compile.Tests |
| 26 | for file in *.thrift |
| 27 | do |
| 28 | ../../../../compiler/cpp/thrift -gen netcore:wcf -r "$file" |
| 29 | done |
| 30 | ../../../../compiler/cpp/thrift -gen netcore:wcf -r ../../../../contrib/fb303/if/fb303.thrift |
| 31 | ../../../../compiler/cpp/thrift -gen netcore:wcf -r ../../../../test/ThriftTest.thrift |
| 32 | popd |
| 33 | |
| 34 | dotnet --info |
| 35 | |
| 36 | dotnet 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 |
| 41 | dotnet build **/*/project.json -r win10-x64 |
| 42 | dotnet build **/*/project.json -r osx.10.11-x64 |
| 43 | dotnet 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 |