forked from HearthSim/SabberStone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (26 loc) · 1.05 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
language: csharp # Comes with Mono automatically.
mono: none # ..speeds up builds by not installing Mono.
dist: trusty
dotnet: 2.1.4
notifications:
email:
on_success: change # default: change
on_failure: never # default: always
on_start: never # default: never
on_cancel: never # default: always
on_error: always # default: always
# As long as we are at the root of the repo
# Dotnet will automatically find and build the solution (SabberStone.sln).
cache:
directories:
- $HOME/.nuget/packages # ..speeds up builds, caches dependancy downloads.
# There is no cleaning up of cache to do.
# `before_install`, `install` and `before_script` immediately exit when
# non zero exit code is returned.
install: # We only accomodate .NET Core + .NET Standard projects.
- dotnet restore
before_script: "unset _JAVA_OPTIONS"
# `script` DOES NOT immediately fail when one command returns != 0
# so the one-liner trick is used.
script:
- dotnet build -c Release /p:TravisBuild=True && pushd ./SabberStoneCoreTest && dotnet xunit -fxversion 2.0.5