forked from Opentrons/opentrons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
51 lines (41 loc) · 2.03 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
image: Visual Studio 2015
environment:
BASH: C:\cygwin64\bin\bash
PYTHON: c:\Python35 # No trailing backslash
CYG_PYTHON_PATH: /cygdrive/c/Python35:/cygdrive/c/Python35/Scripts # Need to override /usr/bin
platform: x64
cache:
- app\node_modules # local npm modules
- '%APPDATA%\npm-cache' # npm cache
init:
- set PATH=%PYTHON%;%PYTHON%\Scripts;%PATH% # Activate Python 3.5
- git config --global core.autocrlf true
# Start RDP server to watch the build
# https://www.appveyor.com/docs/how-to/rdp-to-build-worker/
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
# Keep RDP server to see at what happened if the build got stuck
# Uncomment this to debug a stuck build through RDP:
# https://www.appveyor.com/docs/how-to/rdp-to-build-worker/
# on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
install:
- ps: Install-Product node 6.11.0 x64
- '%BASH% -lc "export PATH=$CYG_PYTHON_PATH:$PATH && cd $APPVEYOR_BUILD_FOLDER/api && make install"'
- '%BASH% -lc "cd $APPVEYOR_BUILD_FOLDER/app && make install"'
build: false # No need to run MSBuild
build_script:
- '%BASH% -lc "export PATH=$CYG_PYTHON_PATH:$PATH && cd $APPVEYOR_BUILD_FOLDER/api && make test exe"'
# Note: we are not running test-e2e on Windows due to problems with ChromeDriver
- '%BASH% -lc "cd $APPVEYOR_BUILD_FOLDER && source scripts/env-vars-appveyor && cd app && make -j 2 build test package"'
- >
%BASH% -lc "cd $APPVEYOR_BUILD_FOLDER/app/dist/win && ls -la . && find ./** ! -name 'opentrons-v*' -exec rm -rf {} + && ls -la ."
before_deploy:
- ps: Get-ChildItem .\app\dist\win | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name -DeploymentName OTAppWin}
deploy:
- provider: S3
access_key_id: $(AWS_ACCESS_KEY)
secret_access_key: $(AWS_SECRET_KEY)
bucket: ot-app-builds
set_public: true
folder: win
artifact: OTAppWin