forked from HangfireIO/Hangfire
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
64 lines (53 loc) · 1.91 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
# Travis-CI Build for Hangfire
# see travis-ci.org for details
#language: csharp
language: cpp
sudo: required
dist: trusty
os:
- linux
- osx
env:
global:
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
- DOTNET_CLI_TELEMETRY_OPTOUT: 1
- CLI_VERSION=1.0.0-preview2-003121
addons:
apt:
packages:
- gettext
- libcurl4-openssl-dev
- libicu-dev
- libssl-dev
- libunwind8
- zlib1g
# Only watch the master branch.
branches:
only:
- master
- dev
# Make sure build dependencies are installed.
before_install:
- if test "$TRAVIS_OS_NAME" == "osx"; then ln -s /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib/; ln -s /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/; fi
- export DOTNET_INSTALL_DIR="$PWD/.dotnetcli"
- export PATH="$DOTNET_INSTALL_DIR:$PATH"
install:
- travis_retry curl -sSL https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0/scripts/obtain/dotnet-install.sh | bash /dev/stdin --version "$CLI_VERSION" --install-dir "$DOTNET_INSTALL_DIR"
#cache:
# - apt
# - directories:
# - packages
# Run the build script
script:
- travis_retry dotnet restore --disable-parallel
- dotnet test tests/Hangfire.Core.Tests -verbose
# Tests on Mono disabled – waiting for https://github.com/NuGet/Home/issues/3085
# - travis_retry mono .nuget/NuGet.exe install .nuget/packages.config -OutputDirectory packages
# - travis_retry mono .nuget/NuGet.exe install .
# - xbuild /p:Configuration=Release /verbosity:minimal Hangfire.Mono.sln
# - mono ./packages/xunit.runner.console.2.2.0-beta2-build3300/tools/xunit.console.exe ./tests/Hangfire.Core.Tests/bin/Release/Hangfire.Core.Tests.dll
notifications:
slack:
secure: LZuLPI1Cj9DgNAtFsZ/zk1fWBDS2PTHHIjvtCV3Fa9qNajzna2qR6Ui3sM/FQirvoXp0JHAqNYkFDI216YativqabWXZp6dQgw3u64bdlc1IWxQ4C6XHpp8WVe1wsNi19vfwKVHfvaNXpvNp9OGHXkmoTS74arRtPhpzSXO/IXw=
on_success: change
on_failure: always