This repository has been archived by the owner on Aug 28, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
appveyor.yml
92 lines (81 loc) · 2.77 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# General Configuration
version: '{build}'
skip_branch_with_pr: true
init:
- ps: |
If($Env:APPVEYOR_REPO_TAG -eq "true")
{
Update-AppveyorBuild -Version "$Env:APPVEYOR_REPO_TAG_NAME"
}
else
{
$releases = "https://api.github.com/repos/$env:APPVEYOR_REPO_NAME/releases"
$tag = (Invoke-WebRequest $releases | ConvertFrom-Json)[0].tag_name
$spl = $tag.Split("-")[0]
Update-AppveyorBuild -Version "$spl.$Env:APPVEYOR_BUILD_VERSION-wip"
}
Write-Host "Hello. Build version is: $Env:APPVEYOR_BUILD_VERSION"
# Environment Configuration
image: Visual Studio 2017
cache:
- '%LocalAppData%\NuGet\v3-cache'
install:
# init and update submodules
- git submodule update --recursive --init
# update node.js to latest 8.x release
- ps: Install-Product node 8
- node --version
- npm --version
# version
assembly_info:
patch: true
file: AssemblyInfo.*
assembly_version: '{version}'
assembly_file_version: '{version}'
# Build Configuration
platform: Any CPU
configuration: Release
before_build:
- nuget restore
# nuget restore SpeckleCore/SpeckleCore/SpeckleCore.sln
- mkdir %AppData%\Grasshopper\Libraries\SpeckleSendReceive
- mkdir Release
# install npm dependencies for SpeckleView and build
- cd SpeckleView
- npm install
- npm run build
# return to build dir
- cd ..
build:
project: SpeckleRhino.sln
verbosity: minimal
after_build:
# zip everything up into a .rhi package
# - 7z a -tzip -r specklerhino.rhi "%APPVEYOR_BUILD_FOLDER%\SpeckleRhinoPlugin\SpeckleWinR6\bin\Release\*"
# - 7z a -tzip -r specklerhino.rhi "%APPVEYOR_BUILD_FOLDER%\SpeckleGrasshopper\bin\Release\*"
- 7z a -tzip -r SpeckleRhino-%APPVEYOR_BUILD_VERSION%.rhi "%APPVEYOR_BUILD_FOLDER%\Release\*"
artifacts:
- path: SpeckleRhino-%APPVEYOR_BUILD_VERSION%.rhi
name: release
deploy:
- release: SpeckleRhino-$(APPVEYOR_BUILD_VERSION)
tag: $(APPVEYOR_REPO_TAG_NAME)
#description: ''
provider: GitHub
auth_token:
secure: D5tPFvdQMg9sIe0sSvQjEWw4KAdOk1jyxNwiH5qP5DpDmUH6n6NgTdA+56vXS1Pe # your encrypted token from GitHub
artifact: SpeckleRhino-$(APPVEYOR_BUILD_VERSION).rhi
#draft: false
#prerelease: false
force_update: true
on: # release from master branch only
appveyor_repo_tag: true # deploy on tag push only
notifications:
- provider: Slack
incoming_webhook:
secure: 9Kt/ImvGdsQ/dzmRdSaMIG+BO0R29MOJC7eZZnK5m5TyWwE+4nofEcYlb/r4lh9Z1Dx/bR+7oQtgAYO3W5s+qJshkT6Is9irYw3TfMZX7/M=
channel: '#devtalk'
template: Build <{{buildUrl}}|#{{buildVersion}}> (<{{commitUrl}}|{{commitId}}>) of {{repositoryName}}@{{branch}}) by {{commitAuthor}} {{status}} in {{duration}}
on_build_success: false
on_build_failure: true
on_build_status_changed: true