forked from pmq20/node-packer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
executable file
·66 lines (43 loc) · 1.91 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
version: '{build}'
image:
- Visual Studio 2017
environment:
DEPEND_DIR: C:\dependencies
PRJROOT_DIR: C:\projects\node-packer
NODEC_TESTS_TMPDIR: C:\tmp
NODEC_NODE: 10.16.3
GYP_MSVS_VERSION: 2017
mode: release
arch: x64
matrix:
- TEST_SCRIPT: coffeescript_1
- TEST_SCRIPT: coffeescript_2
- TEST_SCRIPT: datetime
cache:
- node_modules
build_script:
- ps: |
$ErrorActionPreference="Stop"
mkdir $env:NODEC_TESTS_TMPDIR
mkdir $env:DEPEND_DIR
Start-FileDownload https://raw.githubusercontent.com/slee047/node-packer/AppVeyorDeps/ruby.zip -FileName $env:DEPEND_DIR\ruby.zip
Start-FileDownload https://github.com/pmq20/squashfuse/files/691217/sqfs43-win32.zip -FileName $env:DEPEND_DIR\sqfs43-win32.zip
Start-FileDownload https://nodejs.org/dist/v$env:NODEC_NODE/node-v$env:NODEC_NODE-win-$env:arch.zip -FileName $env:DEPEND_DIR\node.zip
Start-FileDownload https://raw.githubusercontent.com/slee047/node-packer/AppVeyorDeps/nasm.zip -FileName $env:DEPEND_DIR\nasm.zip
Add-Type -AssemblyName System.IO.Compression.FileSystem
[System.IO.Compression.ZipFile]::ExtractToDirectory("$env:DEPEND_DIR\ruby.zip", "$env:DEPEND_DIR")
[System.IO.Compression.ZipFile]::ExtractToDirectory("$env:DEPEND_DIR\sqfs43-win32.zip", "$env:DEPEND_DIR\usr\bin")
[System.IO.Compression.ZipFile]::ExtractToDirectory("$env:DEPEND_DIR\node.zip", "$env:DEPEND_DIR\usr\bin")
[System.IO.Compression.ZipFile]::ExtractToDirectory("$env:DEPEND_DIR\nasm.zip", "$env:DEPEND_DIR")
test_script:
- cmd: |
set PATH=%DEPEND_DIR%\node-v%NODEC_NODE%-win-%arch%;%DEPEND_DIR%\usr\bin;%PATH%
npm install npm-cli -g
python --version
mksquashfs -version
ruby --version
node --version
nasm -v
npm --version
git clone --depth 1 https://github.com/jashkenas/coffeescript.git & exit 0
ruby tests\%TEST_SCRIPT%