-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
52 lines (48 loc) · 1.84 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
language: csharp
matrix:
include:
- os: linux
mono: latest
dotnet: 3.1.101
- os: windows
mono: none
before_install:
- export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
- export DOTNET_CLI_TELEMETRY_OPTOUT=1
script:
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then choco install dotnetcore-sdk --version 3.1.101 -y; fi
- dotnet test Tests/ConsoleTests
- dotnet test Tests/ExecutionTests
- dotnet test Tests/InterpreterTests
- mkdir UploadThis
- cd Console
- mkdir BuildTo
- dotnet build
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then dotnet publish --configuration Release -p:PublishSingleFile=true -p:PublishTrimmed=true -r linux-x64 -o BuildTo ; mv BuildTo/Console ../UploadThis/fluency-linux64; fi
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then dotnet publish --configuration Release -p:PublishSingleFile=true -p:PublishTrimmed=true -r win-x64 -o BuildTo ; mv BuildTo/Console.exe ../UploadThis/fluency-win64.exe; fi
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then dotnet publish --configuration release -p:PublishSingleFile=true -p:PublishTrimmed=true -r win-x86 -o BuildTo ; mv BuildTo/Console.exe ../UploadThis/fluency-win32.exe; fi
- cd ..
- ls UploadThis
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then cd Documentation; wget https://github.com/dotnet/docfx/releases/download/v2.48.1/docfx.zip; mkdir docfx; unzip docfx.zip -d docfx; mono docfx/docfx.exe; cd ..; fi
- cd "$TRAVIS_BUILD_DIR"
deploy:
- provider: pages
cleanup: false
skip_cleanup: true
github_token: $push_token
local_dir: Documentation/_site
repo: Kansattica/Fluency
target_branch: gh-pages
verbose: true
on:
branch: master
condition: $TRAVIS_OS_NAME = "linux"
- provider: releases
cleanup: false
skip_cleanup: true
api_key: $release_token
file_glob: true
file: UploadThis/*
draft: true
on:
tags: true