This repository has been archived by the owner on May 2, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
51 lines (51 loc) · 1.78 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
os: windows
language: cpp
git:
depth: 1
env:
global:
- ARTIFACT="WindBotIgnite-Release-$(date +%Y%m%d)-$TRAVIS_COMMIT.zip"
# Visual Studio Installer location for the Android SDK
- ANDROID_SDK_ROOT='C:\Program Files (x86)\Android\android-sdk'
# Visual Studio Installer location for an OpenJDK for Android development
- JAVA_HOME='C:\Program Files\Android\jdk\microsoft_dist_openjdk_1.8.0.25'
jobs:
include:
- name: "Desktop exe"
script: dotnet build WindBot.csproj --configuration=Release
env: DESKTOP_BUILD=1
before_deploy:
- cd bin && mv Release WindBot
- 7z a -tzip "$ARTIFACT" WindBot
- mv $ARTIFACT .. && cd ..
- name: "Android aar"
install:
- choco install nuget.commandline visualstudio2017-workload-xamarinbuildtools visualstudio2017-workload-nativemobile visualstudio2017-workload-netcrossplat
- ./ci/install-sdk-ndk.sh
- choco install mono --x86 # Unspecified dependency for Embeddinator; 64-bit does not work
script:
- export PATH="/c/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/MSBuild/15.0/Bin":$PATH
- nuget restore WindBot.sln
- msbuild.exe -m -p:Configuration=Release WindBot.sln
before_deploy:
- cd bin && mkdir -p WindBot
- cp -r Release/COPYING Release/LICENSE Release/bots.json Release/Decks/ Release/Dialogs/ WindBot/
- 7z a WindBotIgnite-Resources.7z WindBot && cd ..
- mv output/libWindbot.aar bin/WindBotIgnite-Resources.7z .
before_script: cp Dialogs/default.json .
deploy:
- provider: script
skip_cleanup: true
script: bash ./ci/deploy.sh
on:
repo: ProjectIgnis/windbot
condition: $DESKTOP_BUILD == 1
- provider: releases
skip_cleanup: true
api_key: $RELEASES_TOKEN
file:
- $ARTIFACT
- libWindbot.aar
- WindBotIgnite-Resources.7z
on:
tags: true