forked from tmds/Tmds.DBus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (30 loc) · 2.1 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
language: generic
sudo: required
dist: trusty
env:
global:
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
- DOTNET_CLI_TELEMETRY_OPTOUT: 1
- secure: "j133P64oqkPVa9nYiUIxowkcMzNAVCEguc/CSNw0N3qpU2Ck9c6orR1kAizW9p9Ye1KV5umTE8AfUhKZ5Cj4UinsM8QUrMTXuLk4oWlUIUNdnE5uZxPPf85A6vq8jMKonlXVbES/M0wket2hVFz2GvAQ0QX6gfKXvXKsz6pN77Qjw5dpyn7pGDGjOHhXa7is3A+G2nWSr9WKWwVQJRouv14YkGoumy+AHyBi8dPO1hJXZylK2ZTw/fjBxImX/7jsz8o4cCc/4UEJcJXtG8yKhhW/2ZOgQQ00cCIQUu8ttUWJoBHtEBO/xpHhJH53JiwMRCwbjJzfnjObRaXMn5ES4bKp/yn2QiGdOzE6w+st8Yr/CNmHGVqz9EbdKrcijCF+fT/gkx9iKfA7seL6ovt369qe4zpkCLKqciEDXHnux/PRvEwwVxOOn3qmn6OxWES51vKaZF/wLeEIOMSVed+6pcZjK9rYBSroMSH7IEFKUkfxNEnIBVL2BBYkPyDyqJaBfUhJvzXiZrzZM6J/zD59ZCFHMnSAU3JfRg3tTfvgJtBPfzErN5brz6b4s1TWQ9uTQEedjJUz3s9EF1bz3MFHh3x4jN8vd3QpIX+HSc8kS69PA6TzmiAexiptwbgAPandvFVDIO273EIgc3zE6LEj63YbV/8QykyW2qZBw8FpA6A="
addons:
apt:
packages:
- gettext
- libunwind8
- libicu52
- dbus
before_install:
- curl -sSL -o dotnet.tar.gz https://dotnetcli.blob.core.windows.net/dotnet/Sdk/release/2.0.0/dotnet-sdk-latest-linux-x64.tar.gz
- sudo mkdir -p /opt/dotnet && sudo tar zxf dotnet.tar.gz -C /opt/dotnet
- sudo ln -s /opt/dotnet/dotnet /usr/local/bin
script:
- pushd src/Tmds.DBus && dotnet restore && dotnet pack -c Release && popd
- pushd test/Tmds.DBus.Tests && dotnet restore && dotnet test && popd
- pushd src/Tmds.DBus.Tool && dotnet restore /p:VersionSuffix="$(date +"%y%m%d")-$TRAVIS_BUILD_NUMBER" && dotnet build && popd
- dotnet pack src/Tmds.DBus --configuration Release --version-suffix "$(date +"%y%m%d")-$TRAVIS_BUILD_NUMBER" --output .
- dotnet pack src/Tmds.DBus.Tool --configuration Release --version-suffix "$(date +"%y%m%d")-$TRAVIS_BUILD_NUMBER" --output .
after_success:
- 'if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
curl -H "X-NuGet-ApiKey: $NUGET_APIKEY" -T src/Tmds.DBus/Tmds.DBus.*.nupkg https://www.myget.org/F/tmds/api/v2/package ;
curl -H "X-NuGet-ApiKey: $NUGET_APIKEY" -T src/Tmds.DBus.Tool/Tmds.DBus.Tool.*.nupkg https://www.myget.org/F/tmds/api/v2/package ;
fi'