Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions appveyor-clean-cache.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
26 changes: 26 additions & 0 deletions appveyor-run.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
:: Execute etstool operation for every tookit in the argument list
:: Options
:: %1 -- operation
:: %2 -- runtime
:: %3... -- tookits
::
::
SETLOCAL EnableDelayedExpansion

SET counter=0

FOR %%x IN (%*) DO (
SET /A counter=!counter! + 1
IF !counter! EQU 1 SET operation=%%x
IF !counter! EQU 2 SET runtime=%%x
IF !counter! GTR 2 CALL edm run -- python ci/edmtool.py !operation! --runtime=!runtime! --toolkit=%%x || GOTO error
)
GOTO end

:error:
ENDLOCAL
EXIT /b %ERRORLEVEL%

:end:
ENDLOCAL
ECHO.Done
35 changes: 35 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
build: false
shallow_clone: false
skip_branch_with_pr: true
environment:

global:
PYTHONUNBUFFERED: "1"
INSTALL_EDM_VERSION: "1.11.0"

matrix:
- RUNTIME: '2.7'
TOOLKITS: "null pyqt pyside wx"
- RUNTIME: '3.5'
TOOLKITS: "null pyqt"
- RUNTIME: '3.6'
TOOLKITS: "null pyqt"

branches:
only:
- master

cache:
- C:\Users\appveyor\.cache -> appveyor-clean-cache.txt
- C:\Users\appveyor\AppData\Local\pip\Cache -> appveyor-clean-cache.txt

init:
- ps: $Env:path = "C:/Enthought/edm;" + $Env:path
- ps: md C:/Users/appveyor/.cache -Force

install:
- install-edm-windows.cmd
- edm install -y wheel click coverage
- appveyor-run.cmd install %runtime% %toolkits%
test_script:
- appveyor-run.cmd test %runtime% %toolkits%
26 changes: 26 additions & 0 deletions install-edm-windows.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
@ECHO OFF

SETLOCAL EnableDelayedExpansion

FOR /F "tokens=1,2,3 delims=." %%a in ("%INSTALL_EDM_VERSION%") do (
SET MAJOR=%%a
SET MINOR=%%b
SET REVISION=%%c
)

SET EDM_MAJOR_MINOR=%MAJOR%.%MINOR%
SET EDM_PACKAGE=edm_%INSTALL_EDM_VERSION%_x86_64.msi
SET EDM_INSTALLER_PATH=%HOMEDRIVE%%HOMEPATH%\.cache\%EDM_PACKAGE%
SET COMMAND="(new-object net.webclient).DownloadFile('https://package-data.enthought.com/edm/win_x86_64/%EDM_MAJOR_MINOR%/%EDM_PACKAGE%', '%EDM_INSTALLER_PATH%')"

IF NOT EXIST %EDM_INSTALLER_PATH% CALL powershell.exe -Command %COMMAND% || GOTO error
CALL msiexec /qn /i %EDM_INSTALLER_PATH% EDMAPPDIR=C:\Enthought\edm || GOTO error

ENDLOCAL
@ECHO.DONE
EXIT

:error:
ENDLOCAL
@ECHO.ERROR
EXIT /b %ERRORLEVEL%