forked from Azure/BatchExplorer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
49 lines (39 loc) · 1.23 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
branches:
only:
- master
- stable
environment:
matrix:
- PYTHON: "C:\\Python36-x64"
PYTHON_VERSION: "3.6.1"
PYTHON_ARCH: "64"
install:
# Prepend newly installed Python to the PATH of this build (this cannot be
# done from inside the powershell script as it would require to restart
# the parent CMD process).
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
# Check that we have the expected version and architecture for Python
- "python --version"
# Upgrade to the latest version of pip to avoid it displaying warnings
# about it being out of date.
- "pip install --disable-pip-version-check --user --upgrade pip==9.0.3"
- ps: Install-Product node 8.9.1 x64
- npm install -g npm -s
- npm install -g yarn -s
- yarn install --force
- pip install -r python/requirements.txt
build_script:
- npm run -s build:prod
- npm run -s build-python
- IF [%APPVEYOR_REPO_BRANCH%]==[stable] (
npm run -s package -- --publish always --draft --win
) ELSE (
npm run -s package -- --publish never
)
test_script:
# - npm run test -s
artifacts:
- path: release\*Setup*.exe
name: Batchlabs-windows-setup.exe
- path: release\*win.zip
name: Batchlabs-windows.zip