-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathappveyor.yml
63 lines (53 loc) · 1.99 KB
/
appveyor.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
53
54
55
56
57
58
59
60
61
62
63
# Version format
version: "{build}"
# Operating system (build VM template)
os: Windows Server 2016
# If the build configuration does not specify build worker image
# then Visual Studio 2015 image is used.
image: Visual Studio 2017
# Restrict to Git branches below
branches:
only:
- 7.x
# Scripts that run after cloning repository
install:
- if not exist gtk-sharp-2.12.45.msi appveyor DownloadFile https://xamarin.azureedge.net/GTKforWindows/Windows/gtk-sharp-2.12.45.msi
- msiexec /i gtk-sharp-2.12.45.msi /qn /norestart
- if not exist XamarinStudio-6.3.0.863.msi appveyor DownloadFile https://dl.xamarin.com/MonoDevelop/Windows/XamarinStudio-6.3.0.863.msi
- msiexec /i XamarinStudio-6.3.0.863.msi /qn /norestart # Use Xamarin Studio v6.x for now
- set MDTOOL="%ProgramFiles(x86)%\Xamarin Studio\bin"
- set PATH=%MDTOOL%;%PATH%
# Cache files until appveyor.yml is modified.
cache:
- gtk-sharp-2.12.45.msi
- XamarinStudio-6.3.0.863.msi
- src\packages
# Run scripts below before
before_build:
- where msbuild
- nuget restore src
# To run your custom scripts instead of automatic MSBuild
build_script:
- cmd: mdtool --help # must be run at least once before doing `mdtool setup ...` (seemingly an mdtool bug)
- cmd: msbuild /p:Configuration=DebugWin32 /t:Build src/MonoDevelop.WakaTime.sln
# Addin files qualified as artifacts
artifacts:
- path: '**\*_Windows.mpack' # find the addin
name: MonoDevelop_WakaTime
# Deploy to GitHub releases
deploy:
provider: GitHub
tag: $(APPVEYOR_REPO_TAG_NAME)
release: "WakaTime Addin v$(APPVEYOR_REPO_TAG_NAME) for v7.x"
description: "Supports\n* MonoDevelop for 🐧 Linux\n* Visual Studio for ⌘ Mac\n* Xamarin Studio for ❖ Windows\n\nFor Windows use **_Windows.mpack** files"
force_update: true
auth_token:
secure: 2+d0KgCbWQpUR8TZfzvUEzbi4NQP6F/Tt0PUwLn6jXZCyO8FnrFVFJPsFa0QBQFl
artifact: MonoDevelop_WakaTime
draft: false
prerelease: false
on:
branch: 7.x
appveyor_repo_tag: true
# Turn off tests
test: off