forked from lando/lando
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
88 lines (73 loc) · 2.2 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
init:
- git config --global core.autocrlf true
platform: x64
environment:
nodejs_version: "6"
install:
# Get the latest stable version of Node.js or io.js
- ps: Install-Product node $env:nodejs_version x64
# Install InnoSetup
- choco install -y InnoSetup
- set PATH=%PATH%;"C:\Program Files (x86)\Inno Setup 5"
# install relevant things
- npm install -g grunt-cli
# Build the things
- npm -E install
# Edit the package.json if this isn't an official release
- IF NOT DEFINED APPVEYOR_REPO_TAG_NAME (node .\scripts\dev-version.js)
# Define the travis tag as "latest-dev" if its not already defined
- IF NOT DEFINED APPVEYOR_REPO_TAG_NAME (SET APPVEYOR_REPO_TAG_NAME=latest-dev)
# Nice dev helpers to verify our env
- scripts\appveyor-env.bat
# Sanity checks
- node --version
- npm --version
- grunt --version
- node bin\lando.js version
# Iscc has no version option and returns exit code 1 by default
# This can never fail but at least we can check the output to verify
- iscc | echo
# Run basic code style tests
- grunt test:code
# Run unit tests
- grunt test:unit
# Make sure we can build the docs
- grunt docs
build_script:
# Build dev releases
- grunt pkg
- mkdir release
- copy "dist\lando.exe" "release\lando-%APPVEYOR_REPO_TAG_NAME%.exe"
artifacts:
- path: release\*.exe
name: release
after_build:
- ps: Get-ChildItem .\release\*.exe | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name -DeploymentName weezer }
deploy:
- provider: GitHub
description: v$(LANDO_VERSION)
artifact: weezer
draft: false
auth_token:
secure: 59olpXsQzG1FN5/M/VZJeMNdlwSoFn4L/Lefk/t3T4j39VF7y4paGsDG6CRuwZGD
prerelease: false
on:
appveyor_repo_tag: true
- provider: S3
access_key_id:
secure: hheF7PGTvLnmq4LzzxZv6/TyzBmPHkhxOVuQFzXZrFQ=
secret_access_key:
secure: n2Wto8btzQ6w029bsvN5POyXfbKs5sL5G83AUjaDvmOkqsoxIL8ijh+md+CkY4BS
bucket: installer.kalabox.io
region: us-west-2
set_public: true
artifact: weezer
on:
branch: master
notifications:
- provider: Email
to:
on_build_failure: true