-
Notifications
You must be signed in to change notification settings - Fork 22
/
.appveyor.yml
54 lines (47 loc) · 1.61 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
version: "{build}"
environment:
global:
HAXELIB_ROOT: C:\projects\haxelib
cache:
- c:\projects\air
init:
- set AIR_SDK=c:\projects\air
install:
# Chocolatey was failing trying to install some Windows updates..!?
# This fixes it somehow.
- ps: Set-Service wuauserv -StartupType Manual
- cinst -y php
# Appveyor doesn't get submodules by default.
- git submodule update --init --recursive
# Install the haxe chocolatey package (https://chocolatey.org/packages/haxe)
- cinst haxe --version 3.4.7 -y
# Install NSIS for installer generation.
- cinst nsis --version 3.02 -y
- RefreshEnv
# Setup haxelib
- mkdir "%HAXELIB_ROOT%"
- haxelib setup "%HAXELIB_ROOT%"
# Install project dependencies
# `> log.txt || type log.txt` is for muting the output unless there is an error
- haxelib install air3 > log.txt || type log.txt && cmd /C exit 1
- haxelib list
# Download and unzip Adobe AIR SDK if not cached.
- if not exist %AIR_SDK% (
curl -fsS -O https://airdownload.adobe.com/air/win/download/latest/AIRSDK_Compiler.zip &&
mkdir %AIR_SDK% &&
7z x -o%AIR_SDK% AIRSDK_Compiler.zip)
# We don't use the build section, but do both build and
# test in `test_script:`.
# It is just because it is more similar to the TravisCI config,
# thus it would be easier to update both of them.
build: off
test_script:
# Build Swivel.swf.
- haxe Swivel.hxml
# Package AIR runtime.
- PackageApp.bat
# Build NSIS installer.
- set PATH="C:\Program Files (x86)\NSIS";%PATH%
- makensis win-installer.nsi
artifacts:
- path: swivel-win32.exe