forked from tmarrinan/node-demux
-
Notifications
You must be signed in to change notification settings - Fork 2
/
appveyor.yml
76 lines (60 loc) · 2.55 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
version: 1.1.{build}
image: Visual Studio 2017
branches:
only:
- master
configuration: Release
platform: x64
#clone_depth: 5
# specific to github and bitbucket: get a ZIP file using REST API
shallow_clone: true
init:
- set PATH=C:\Program Files\Git\mingw64\bin;%PATH%
- curl -LsSO http://ffmpeg.zeranoe.com/builds/win64/dev/ffmpeg-3.3.1-win64-dev.zip
- 7z x ffmpeg-3.3.1-win64-dev.zip -o.
- mkdir C:\Dev\
- mkdir C:\Dev\ffmpeg-win64-dev
- move ffmpeg-3.3.1-win64-dev\lib C:\Dev\ffmpeg-win64-dev
- move ffmpeg-3.3.1-win64-dev\include C:\Dev\ffmpeg-win64-dev
- del /Q *.zip
- rmdir /Q /S ffmpeg-3.3.1-win64-dev
- dir C:\Dev
- dir C:\Dev\ffmpeg-win64-dev\include
- dir C:\Dev\ffmpeg-win64-dev\lib
- ps: Get-NodeJsLatestBuild 6.0
environment:
BITBUCKET_PASSWORD:
secure: knMJcKTWQPaMlmpY298Z4w==
matrix:
- nodejs_version: 8.12.0
- nodejs_version: 9.11.2
- nodejs_version: 10.11.0
install:
- ps: >-
Install-Product node $env:nodejs_version x64
npm -v
node -v
npm config set package-lock=false
npm config set save=false
npm install --msvs_version=2017
npm run rebuild
build:
parallel: true
verbosity: minimal
after_build:
- curl -LsSO http://ffmpeg.zeranoe.com/builds/win64/shared/ffmpeg-3.3.1-win64-shared.zip
- 7z x ffmpeg-3.3.1-win64-shared.zip -o.
- move ffmpeg-3.3.1-win64-shared\bin\* build\Release
- rmdir /Q /S ffmpeg-3.3.1-win64-shared
- del /Q *.zip
- mkdir C:\Build\
#- 7z a -ttar C:\Build\node-demux_win_%nodejs_version%.tar C:\projects\node-demux\
#- 7z a -tgzip C:\Build\node-demux_win_%nodejs_version%.tar.gz C:\Build\node-demux_win_%nodejs_version%.tar
- 7z a -ttar C:\Build\node_demux-v1.1.0-node-v%nodejs_version%-win32-x64.tar C:\projects\node-demux\build\Release
- 7z a -tgzip C:\Build\node_demux-v1.1.0-node-v%nodejs_version%-win32-x64.tar.gz C:\Build\node_demux-v1.1.0-node-v%nodejs_version%-win32-x64.tar
#- move C:\Build\node-demux_win_%nodejs_version%.tar.gz C:\projects\node-demux
- move C:\Build\node_demux-v1.1.0-node-v%nodejs_version%-win32-x64.tar.gz C:\projects\node-demux
#- curl --insecure --progress-bar --location --fail --user "renambot:%BITBUCKET_PASSWORD%" --form files=@"node-demux_win_%nodejs_version%.tar.gz" "https://api.bitbucket.org/2.0/repositories/sage2/binaries/downloads/"
- curl --insecure --progress-bar --location --fail --user "renambot:%BITBUCKET_PASSWORD%" --form files=@"node_demux-v1.1.0-node-v%nodejs_version%-win32-x64.tar.gz" "https://api.bitbucket.org/2.0/repositories/sage2/binaries/downloads/"
- dir
test: off