forked from HangfireIO/Hangfire
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (45 loc) · 1.44 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
# Travis-CI Build for Hangfire
# see travis-ci.org for details
#language: csharp
language: cpp
sudo: required
dist: trusty
os:
- linux
- osx
env:
- CLI_VERSION=latest
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 brew install openssl; brew link --force openssl; 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
- 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