From a718d1cefec395fbc71e213309aa198363821f5f Mon Sep 17 00:00:00 2001 From: JustArchi Date: Mon, 10 Jul 2017 08:52:59 +0200 Subject: [PATCH] Travis: Unit tests fixes --- .travis.yml | 1 + .../ArchiSteamFarm.Tests.csproj | 1 + ArchiSteamFarm.Tests/Trading.cs | 26 ++++++++++++++++++- 3 files changed, 27 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index e627733cc..43e5ce24c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,6 +28,7 @@ script: - set -e - dotnet restore - dotnet build -c Release + - dotnet test -c Release --no-build --no-restore ArchiSteamFarm.Tests - dotnet publish -c Release -o out/generic - echo "generic" > "ArchiSteamFarm/out/generic/ArchiSteamFarm.version" - dotnet publish -c Release -r win-x64 -o out/win-x64 diff --git a/ArchiSteamFarm.Tests/ArchiSteamFarm.Tests.csproj b/ArchiSteamFarm.Tests/ArchiSteamFarm.Tests.csproj index 201aa7a0b..4d8f121d3 100644 --- a/ArchiSteamFarm.Tests/ArchiSteamFarm.Tests.csproj +++ b/ArchiSteamFarm.Tests/ArchiSteamFarm.Tests.csproj @@ -5,6 +5,7 @@ netcoreapp2.0 latest none + win-x64;linux-x64;linux-arm;osx-x64 diff --git a/ArchiSteamFarm.Tests/Trading.cs b/ArchiSteamFarm.Tests/Trading.cs index 220854d92..ea5f46b27 100644 --- a/ArchiSteamFarm.Tests/Trading.cs +++ b/ArchiSteamFarm.Tests/Trading.cs @@ -1,4 +1,28 @@ -using System; +/* + _ _ _ ____ _ _____ + / \ _ __ ___ | |__ (_)/ ___| | |_ ___ __ _ _ __ ___ | ___|__ _ _ __ _ __ ___ + / _ \ | '__|/ __|| '_ \ | |\___ \ | __|/ _ \ / _` || '_ ` _ \ | |_ / _` || '__|| '_ ` _ \ + / ___ \ | | | (__ | | | || | ___) || |_| __/| (_| || | | | | || _|| (_| || | | | | | | | +/_/ \_\|_| \___||_| |_||_||____/ \__|\___| \__,_||_| |_| |_||_| \__,_||_| |_| |_| |_| + + Copyright 2015-2017 Łukasz "JustArchi" Domeradzki + Contact: JustArchi@JustArchi.net + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +*/ + +using System; using System.Collections.Generic; using System.Reflection; using ArchiSteamFarm.JSON;