forked from bruno-garcia/SharpSyslogServer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
68 lines (58 loc) · 1.67 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
language: csharp
#dotnet cli require Ubuntu 14.04
sudo: required
dist: trusty
#dotnet cli require OSX 10.10
osx_image: xcode7.1
addons:
apt:
packages:
- gettext
- libcurl4-openssl-dev
- libicu-dev
- libssl-dev
- libunwind8
- zlib1g
os:
- osx
- linux
env:
matrix:
- CLI_VERSION=1.0.0-preview1-002702
- CLI_VERSION=Latest
matrix:
allow_failures:
- env: CLI_VERSION=Latest
before_install:
- if test "$TRAVIS_OS_NAME" == "osx"; then brew update; brew install openssl; brew link --force openssl; fi
# Download script to install dotnet cli
- curl -L --create-dirs https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0-preview1/scripts/obtain/dotnet-install.sh -o ./scripts/obtain/install.sh
- find ./scripts -name "*.sh" -exec chmod +x {} \;
- export DOTNET_INSTALL_DIR="$PWD/.dotnetcli"
# use bash to workaround bug https://github.com/dotnet/cli/issues/1725
- sudo bash ./scripts/obtain/install.sh --channel "preview" --version "$CLI_VERSION" --install-dir "$DOTNET_INSTALL_DIR" --no-path
# add dotnet to PATH
- export PATH="$DOTNET_INSTALL_DIR:$PATH"
script:
- which dotnet;
if [ $? -eq 0 ]; then
echo "Using dotnet:";
dotnet --info;
else
echo "dotnet.exe not found"
exit 1;
fi
# dotnet restore
- dotnet restore
# Build projects
- dotnet build ./SharpSyslogServer
- dotnet build ./SharpSyslogServer.Tests
- dotnet build ./SharpSyslogServer.Console
after_success:
# Run tests
- cd ./SharpSyslogServer.Tests
- dotnet test
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/a7b45ba20e162242e0c8