This repository has been archived by the owner on Oct 26, 2021. It is now read-only.
/
appveyor.yml
94 lines (79 loc) · 2.4 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
93
94
init:
- git config --global core.autocrlf true
platform: x64
environment:
nodejs_version: "4.2"
install:
# Get the latest stable version of Node.js or io.js
- ps: Install-Product node $env:nodejs_version x64
# Bump to ruby 2.3
- set PATH=C:\Ruby23\bin;%PATH%
# Install InnoSetup
- choco install -y InnoSetup
- set PATH=%PATH%;"C:\Program Files (x86)\Inno Setup 5"
# install relevant things
- npm install -g grunt-cli bower
- gem install sass
# Build the things
# Need to do this first because it installs JX for us
- npm 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
- cmd: node_modules\jxcore\bin\jx.exe --version
- cmd: node_modules\jxcore\bin\jx.exe --jxversion
- ruby --version
- gem --version
- bower --version
- sass --version
- node bin\kbox.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 tests
- grunt test:code
- grunt test:unit
build_script:
# Build dev releases
- grunt pkg
- mkdir release
- copy "dist\kalabox.exe" "release\kalabox-%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$(KALABOX_VERSION)
artifact: weezer
draft: false
auth_token:
secure: o0IVlx+/pe1B6oybNp8JHk3NIn0O4Ki+6v3nHF6Hu8ULnIePBY3//o/YCav/Paa8
prerelease: false
on:
appveyor_repo_tag: true
- provider: S3
access_key_id:
secure: t16g2geIvu5qJVSiPzqxzUnk4+p9X1psf6e8RmUJPDk=
secret_access_key:
secure: o/pYPIuDU8SPSrTB15BwzlLrDXGuhhTJUWdWMyvDLnsAwC6uJmASPEATUX9CFIEW
bucket: installer.kalabox.io
region: us-west-2
set_public: true
artifact: weezer
on:
branch: v2.1
notifications:
- provider: Email
to:
- mike@kalabox.io
- alec@kalabox.io
on_build_status_changed: true