ArchiSteamFarm/.travis.yml

50 lines
1.4 KiB
YAML
Raw Normal View History

2017-03-13 01:29:02 +00:00
# ASF is a C# project with solution named ArchiSteamFarm.sln
2016-03-23 12:09:17 +00:00
language: csharp
solution: ArchiSteamFarm.sln
2016-03-23 12:26:03 +00:00
2017-01-16 02:03:19 +00:00
# Save bandwidth by limiting git clone to only last 10 commits
2016-03-23 12:26:03 +00:00
git:
depth: 10
# Don't build other branches than master
2017-01-16 02:03:19 +00:00
# Sadly Travis doesn't support AppVeyor's "skip_branch_with_pr"
branches:
only:
2017-03-13 01:33:40 +00:00
- master
2016-04-20 23:02:07 +00: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
dotnet: 2.0.0-preview1-005977
2017-06-27 16:36:40 +00:00
env:
global:
- DOTNET_CLI_TELEMETRY_OPTOUT: 1
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
script:
- dotnet restore
- dotnet build -c Release
2017-06-30 06:24:20 +00:00
- dotnet publish -c Release -o out\generic
- dotnet publish -c Release -r win-x64 -o out\win-x64
- dotnet publish -c Release -r linux-x64 -o out\linux-x64
- dotnet publish -c Release -r osx-x64 -o out\osx-x64
2017-06-27 16:36:40 +00:00
2017-03-13 01:29:02 +00:00
# This is our main build matrix
2017-01-16 23:29:47 +00:00
matrix:
2017-03-13 01:33:40 +00:00
# We can use fast finish, as we don't need to wait for all builds to mark it as failed/passed
2017-01-16 23:29:47 +00:00
fast_finish: true
2017-06-30 06:24:20 +00:00
allow_failures:
# We allow OS X to fail until https://github.com/travis-ci/travis-ci/issues/7757 is fixed
- os: osx
2017-03-13 01:29:02 +00:00
include:
# We're building ASF with dotnet on latest versions of Linux and OS X
2017-03-13 01:29:02 +00:00
# Ref: https://docs.travis-ci.com/user/ci-environment/#Virtualization-environments
- os: linux
dist: trusty
sudo: false
2017-06-30 06:24:20 +00:00
- os: osx
osx_image: xcode9