-
Notifications
You must be signed in to change notification settings - Fork 3
/
appveyor.yml
67 lines (65 loc) · 2.34 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
# Execute tests on all pushes to any branch
-
cache:
- node_modules
environment:
matrix:
- nodejs_version: 8
install:
- ps: $env:package_version = (Get-Content -Raw -Path package.json | ConvertFrom-Json).version
- ps: Install-Product node $env:nodejs_version
- ps: If ($env:APPVEYOR_REPO_BRANCH -eq "master") { $env:toggle_prerelease="false"; $env:rel_type="stable"} Else {$env:toggle_prerelease="true"; $env:rel_type="nightly"}
- set CI=true
- npm install -g npm@latest
- set PATH=%APPDATA%\npm;%PATH%
- npm install
build_script:
- cmd: echo "skip build just testing"
matrix:
fast_finish: true
test_script:
- npm run test
# Test and only build windows release on master and dev branches
-
branches:
only:
- master
- dev
skip_tags: true
cache:
- node_modules
environment:
matrix:
- nodejs_version: 8
install:
- ps: $env:package_version = (Get-Content -Raw -Path package.json | ConvertFrom-Json).version
- ps: Install-Product node $env:nodejs_version
- ps: If ($env:APPVEYOR_REPO_BRANCH -eq "master") { $env:toggle_prerelease="false"; $env:rel_type="stable"} Else {$env:toggle_prerelease="true"; $env:rel_type="nightly"}
- set CI=true
- npm install -g npm@latest
- set PATH=%APPDATA%\npm;%PATH%
- npm install
matrix:
fast_finish: true
test_script:
- npm run test
build_script:
- npm run build
- npm run package-win
after_build:
- ps: 7z a WorldOfAddons-$env:package_version-$env:rel_type-win32x64.zip $env:APPVEYOR_BUILD_FOLDER\release
artifacts:
- path: release
name: WorldOfAddons-$(package_version)-$(rel_type)-win32x64
shallow_clone: true
clone_depth: 1
deploy:
- provider: GitHub
release: $(package_version)-$(rel_type)
prerelease: $(toggle_prerelease)
description: <i><b>[Please consult our wiki for installation and usage guides](https://github.com/WorldofAddons/worldofaddons/wiki)</b></i></br>Pre-release builds may be unstable.</br>Automatically built from branch `$(APPVEYOR_REPO_BRANCH)`, AppVeyor build `$(APPVEYOR_BUILD_VERSION)`</br></br>$(APPVEYOR_REPO_COMMIT_MESSAGE)
auth_token:
secure: JPLPY6cHS8ydAPy2lc49ym1aBGk5uUStEAKfEQuVqdB2Jl9X/sfWdu4MVagLff1D
artifact: WorldOfAddons-$(package_version)-$(rel_type)-win32x64.zip
on:
branch: $(APPVEYOR_REPO_BRANCH)