Files
ArchiSteamFarm/.travis.yml

61 lines
1.6 KiB
YAML
Raw Normal View History

2017-03-13 02:29:02 +01:00
# ASF is a C# project with solution named ArchiSteamFarm.sln
2016-03-23 13:09:17 +01:00
language: csharp
solution: ArchiSteamFarm.sln
2016-03-23 13:26:03 +01:00
2017-01-16 03:03:19 +01:00
# Save bandwidth by limiting git clone to only last 10 commits
2016-03-23 13:26:03 +01:00
git:
depth: 10
# Don't build other branches than master
2017-01-16 03:03:19 +01:00
# Sadly Travis doesn't support AppVeyor's "skip_branch_with_pr"
branches:
only:
2017-03-13 02:33:40 +01:00
- master
2016-04-21 01:02:07 +02:00
# This is .NET Core project, we're not building with Mono
mono: none
# ASF requires .NET Core 2.0+
# TODO: We should target stable 2.0.0 once it's released
2017-07-14 16:08:13 +02:00
dotnet: 2.0.0-preview2-006497
2017-06-27 18:36:40 +02:00
env:
global:
- DOTNET_CLI_TELEMETRY_OPTOUT: 1
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
2017-07-14 16:55:34 +02:00
before_script: dotnet restore
2017-06-27 18:36:40 +02:00
script:
2017-07-14 16:55:34 +02:00
- |
set -e
RUNTIMES="generic win-x64 linux-x64 linux-arm osx-x64"
dotnet build -c Release
dotnet test -c Release --no-build --no-restore ArchiSteamFarm.Tests
for RUNTIME in $RUNTIMES; do
if [ "$RUNTIME" = "generic" ]; then
dotnet publish -c Release -o "out/${RUNTIME}"
else
dotnet publish -c Release -r "$RUNTIME" -o "out/${RUNTIME}"
fi
echo "$RUNTIME" > "ArchiSteamFarm/out/${RUNTIME}/ArchiSteamFarm.version"
done
2017-06-27 18:36:40 +02:00
2017-01-17 00:29:47 +01:00
matrix:
2017-07-10 09:02:57 +02:00
# We can use fast finish, as we don't need to wait for allow_failures builds to mark build as success
2017-01-17 00:29:47 +01:00
fast_finish: true
2017-03-13 02:29:02 +01:00
include:
2017-07-10 09:02:57 +02:00
# We're building ASF with dotnet on latest versions of Linux and OS X
# Ref: https://docs.travis-ci.com/user/ci-environment/#Virtualization-environments
2017-03-13 02:29:02 +01:00
- os: linux
2017-07-14 16:55:34 +02:00
# Ref: https://docs.travis-ci.com/user/trusty-ci-environment/
2017-03-13 02:29:02 +01:00
dist: trusty
sudo: false
2017-06-30 08:24:20 +02:00
- os: osx
2017-07-14 16:55:34 +02:00
# Ref: https://docs.travis-ci.com/user/osx-ci-environment/
2017-06-30 08:24:20 +02:00
osx_image: xcode9