-
Notifications
You must be signed in to change notification settings - Fork 59
/
appveyor.yml
executable file
·55 lines (45 loc) · 1.32 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
# Test against the latest version of this Node.js version
environment:
nodejs_version: "6"
# Do not build tags (prevents double builds)
skip_tags: true
# Install scripts. (runs after repo cloning)
install:
# Get the latest stable version of Node.js or io.js
- ps: Install-Product node $env:nodejs_version
# Run batch
- ./build.win.bat
- SET lw_build_version=<.\app\VERSION
# Add caching to speed up build
cache:
- "%LOCALAPPDATA%\\Yarn"
# Post-install test scripts.
test_script:
# Output useful info for debugging.
- node --version
- npm --version
# run tests
- npm test
on_finish:
- echo %cd%
- rd /s /q ..\LaserWeb4\node_modules
# Don't actually build.
build: off
# Add some artifacts, these are things we want to keep
artifacts:
- path: dist\*
name: LocalDist
before_deploy:
- ps: $env:lw_build_version = Get-Content ".\node_modules\lw.comm-server\app\VERSION"
# Deploy to the cloud
deploy:
release: v$(lw_build_version)
description: 'LaserWeb for Mac and PC (`$(TARGET_UI_BRANCH)`).\n\n>$(GIT_LOGS)'
provider: GitHub
auth_token:
secure: yGBLBhF4ye007oEUaBk0r+IQD5BczKPVQ4JSflT3FZrBb0kFyU6QsyF86FXGE+Vi
artifact: LocalDist # upload all NuGet packages to release assets
draft: false
prerelease: false
on:
branch: master # release from master branch only