-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
106 lines (106 loc) · 6.23 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
matrix:
include:
- language: csharp
os: linux
dist: xenial
mono: none
dotnet: 2.1
env:
secure: Zdf/jHNSdMalt4Czp7Q7TngZrDpcplQ0JKJpQYAPZsCPqDJ7Xw9mcoR0VKMm5z06cZsmF/r4yXtJMbWMedfgaPkCTK7rI5Z2iIQWgkIL7b+x6pn/FODjFA+Llhj9xjy5GrHE9nx/f6Qta0F7BvwTzCW4HTBQceFtdzBOz2NbqrHgwJrONF1rON6PIqapKPfIh6pNRr5Ud6u9/pHSZceCrB+kjua7R687vFVqHj7I7P5RxQn7dnNJNCjCQdwauwejG42UmAkLshrdV00g82HZqNzAYGxP2FdGkcueIbTssDB8DODT4UE/5bde6Ol2uW7vlx9FDxFsXNfv9MiqCjfMweGnuODOeJfQfvtvRWpX6GeVhTvzTCp8/MxFZo5tnWedhrWBBT6Hjmnc+kCYyCMra7hO0xOORRnUn8P9fyTYjWu0gQEpS3Z2nZx2v+ZbVVEoHD2tPEF2+B7QMILO/HgsLZChnrgZNPW5fTcmLncTvv5VAnb55mUj8yclZq3Fu5EJwj00kTgH5w+3KykPo1YjIC6KBYj9u2KveKQuquyqUoIcWtYh8IXWi+3jyLvMjLc7ZWQmqKfaNuskB3mUD2khtZPUjRihPaEzJ4+TGqeqoaYoFT2TwLg/AFqbzbuvNr6FnXAhzL8vM5FtcIW8FeeubOOKZm9R42U/jdlCuIUzGPE=
script:
- dotnet build -c Release
- dotnet test -c Release
before_deploy:
- dotnet pack RSocket.Rpc.Core -c Release -p:Version=$TRAVIS_TAG
deploy:
provider: script
script: dotnet nuget push RSocket.Rpc.Core/bin/Release/RSocket.Rpc.Core.*.nupkg --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json
skip_cleanup: true
on:
repo: rsocket/rsocket-rpc-net
tags: true
- language: cpp
os: linux
dist: xenial
compiler: gcc
before_install:
- wget https://github.com/google/protobuf/releases/download/v3.6.1/protobuf-cpp-3.6.1.tar.gz
- tar -xzvf protobuf-cpp-3.6.1.tar.gz
- pushd protobuf-3.6.1
- ./configure --disable-shared && make && sudo make install
- popd
script:
- pushd RSocket.Rpc.Protobuf
- cmake . -Bbuild && make -Cbuild
- popd
before_deploy:
- pushd RSocket.Rpc.Protobuf/build
- tar -czvf rsocket-rpc-protobuf-v${TRAVIS_TAG}-${TRAVIS_OS_NAME}-x64.tar.gz rsocket_rpc_csharp_plugin
- popd
deploy:
provider: releases
api_key:
secure: Bfj44G+KzB8M9zLJoH/QMLVC/Es6ra6I+qoHVxtkZAhaqlmPaIpvtJF6AZluEMu/gEBdDtPdY8GmTJZQ+kPyYszRC7DmOZFsqLJ8EQvH0fjKduIIk0kL7ywMbvvQiZ+2uGBRb3+D4zwpRAPw5ebvj2P0D2golkV33vNCczp2NWDhCoeRY1bm+EbjsWZuB4jpuStdDeVpKSsgbtSJhgnqXhjBlt4AeOIj1eC/cp39jTpGnNDco2ZsbutRrJ1hudONbYZGm4hSSviW2F6nAXRL/jmtSHPEXq2OcZOOfn5r68uLC0qiXVDaoobTEPIHtHIz/K6qgkrQ1u5JbwmWbAhakG7gFpsVOKtNGgAqdamFC2TgsowMQdAOJxsPbKDjaiJ0paYE0bvLy5E+9l222c9MsgBkmtRjnfETipwShuFJ155FbSSejIOuj8iksLwY17crvg2fpeRgWsc0zo15chYHITSLi8SXRE/aA3yLDk2dQGEFPSaVY452+meOQFympFStbyGJ3yrb7bg+X5M3Nn8GgD70j1OnL3aBN8XlgRI2pX4+HBnEUoE8210D8Ksi8D1rOYzib64w94jrGEiiqZzfZTiQCssFEI7TInZXmL3qWOWzMWVVLZl6azy4G1nvxK+vy69odrhrX3G/0TtmBj4sLochifrFGDbTXByO0LqAKjc=
file: RSocket.Rpc.Protobuf/build/rsocket-rpc-protobuf-v${TRAVIS_TAG}-${TRAVIS_OS_NAME}-x64.tar.gz
skip_cleanup: true
on:
repo: rsocket/rsocket-rpc-net
tags: true
- language: cpp
os: osx
osx_image: xcode10.1
compiler: clang
before_install:
- curl -O -L https://github.com/google/protobuf/releases/download/v3.6.1/protobuf-cpp-3.6.1.tar.gz
- tar -xzf protobuf-cpp-3.6.1.tar.gz
- pushd protobuf-3.6.1
- ./autogen.sh
- ./configure --disable-shared && make && sudo make install
- popd
script:
- pushd RSocket.Rpc.Protobuf
- cmake . -Bbuild && make -Cbuild
- popd
before_deploy:
- pushd RSocket.Rpc.Protobuf/build
- tar -czvf rsocket-rpc-protobuf-v${TRAVIS_TAG}-${TRAVIS_OS_NAME}-x64.tar.gz rsocket_rpc_csharp_plugin
- popd
deploy:
provider: releases
api_key:
secure: Bfj44G+KzB8M9zLJoH/QMLVC/Es6ra6I+qoHVxtkZAhaqlmPaIpvtJF6AZluEMu/gEBdDtPdY8GmTJZQ+kPyYszRC7DmOZFsqLJ8EQvH0fjKduIIk0kL7ywMbvvQiZ+2uGBRb3+D4zwpRAPw5ebvj2P0D2golkV33vNCczp2NWDhCoeRY1bm+EbjsWZuB4jpuStdDeVpKSsgbtSJhgnqXhjBlt4AeOIj1eC/cp39jTpGnNDco2ZsbutRrJ1hudONbYZGm4hSSviW2F6nAXRL/jmtSHPEXq2OcZOOfn5r68uLC0qiXVDaoobTEPIHtHIz/K6qgkrQ1u5JbwmWbAhakG7gFpsVOKtNGgAqdamFC2TgsowMQdAOJxsPbKDjaiJ0paYE0bvLy5E+9l222c9MsgBkmtRjnfETipwShuFJ155FbSSejIOuj8iksLwY17crvg2fpeRgWsc0zo15chYHITSLi8SXRE/aA3yLDk2dQGEFPSaVY452+meOQFympFStbyGJ3yrb7bg+X5M3Nn8GgD70j1OnL3aBN8XlgRI2pX4+HBnEUoE8210D8Ksi8D1rOYzib64w94jrGEiiqZzfZTiQCssFEI7TInZXmL3qWOWzMWVVLZl6azy4G1nvxK+vy69odrhrX3G/0TtmBj4sLochifrFGDbTXByO0LqAKjc=
file: RSocket.Rpc.Protobuf/build/rsocket-rpc-protobuf-v${TRAVIS_TAG}-${TRAVIS_OS_NAME}-x64.tar.gz
skip_cleanup: true
on:
repo: rsocket/rsocket-rpc-net
tags: true
- language: cpp
os: windows
before_install:
- wget https://github.com/google/protobuf/releases/download/v3.6.1/protobuf-cpp-3.6.1.tar.gz
- tar -xzvf protobuf-cpp-3.6.1.tar.gz
- pushd protobuf-3.6.1/cmake
- mkdir build && cd build
- cmake -DCMAKE_CXX_FLAGS="-std=c++11" -Dprotobuf_BUILD_TESTS=OFF ..
- cmake --build . --config Release
- cmake --build . --config Release --target install
- popd
script:
- pushd RSocket.Rpc.Protobuf
- mkdir build && cd build
- cmake -DProtobuf_LIBRARIES=/c/Program\ Files\ \(x86\)/protobuf/lib/ -DProtobuf_INCLUDE_DIR=/c/Program\ Files\ \(x86\)/protobuf/include/ -DProtobuf_LIBRARY=/c/Program\ Files\ \(x86\)/protobuf/lib/libprotobuf.lib -DProtobuf_PROTOC_LIBRARY=/c/Program\ Files\ \(x86\)/protobuf/lib/libprotoc.lib ..
- cmake --build . --config Release
- popd
before_deploy:
- pushd RSocket.Rpc.Protobuf/build
- tar -czvf rsocket-rpc-protobuf-v${TRAVIS_TAG}-${TRAVIS_OS_NAME}-x64.tar.gz -C Release rsocket_rpc_csharp_plugin.exe
- popd
deploy:
provider: releases
api_key:
secure: Bfj44G+KzB8M9zLJoH/QMLVC/Es6ra6I+qoHVxtkZAhaqlmPaIpvtJF6AZluEMu/gEBdDtPdY8GmTJZQ+kPyYszRC7DmOZFsqLJ8EQvH0fjKduIIk0kL7ywMbvvQiZ+2uGBRb3+D4zwpRAPw5ebvj2P0D2golkV33vNCczp2NWDhCoeRY1bm+EbjsWZuB4jpuStdDeVpKSsgbtSJhgnqXhjBlt4AeOIj1eC/cp39jTpGnNDco2ZsbutRrJ1hudONbYZGm4hSSviW2F6nAXRL/jmtSHPEXq2OcZOOfn5r68uLC0qiXVDaoobTEPIHtHIz/K6qgkrQ1u5JbwmWbAhakG7gFpsVOKtNGgAqdamFC2TgsowMQdAOJxsPbKDjaiJ0paYE0bvLy5E+9l222c9MsgBkmtRjnfETipwShuFJ155FbSSejIOuj8iksLwY17crvg2fpeRgWsc0zo15chYHITSLi8SXRE/aA3yLDk2dQGEFPSaVY452+meOQFympFStbyGJ3yrb7bg+X5M3Nn8GgD70j1OnL3aBN8XlgRI2pX4+HBnEUoE8210D8Ksi8D1rOYzib64w94jrGEiiqZzfZTiQCssFEI7TInZXmL3qWOWzMWVVLZl6azy4G1nvxK+vy69odrhrX3G/0TtmBj4sLochifrFGDbTXByO0LqAKjc=
file: RSocket.Rpc.Protobuf/build/rsocket-rpc-protobuf-v${TRAVIS_TAG}-${TRAVIS_OS_NAME}-x64.tar.gz
skip_cleanup: true
on:
repo: rsocket/rsocket-rpc-net
tags: true