forked from ilastik/ilastik
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
44 lines (37 loc) · 1.74 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
image: Visual Studio 2017
clone_folder: c:\projects\ilastik
environment:
ENV_NAME: test-env
# set miniconda version explicitly
MINICONDA: C:\Miniconda37-x64
IlASTIK_ROOT: C:\ilastik
VOLUMINA_SHOW_3D_WIDGET: 0
APPVEYOR_CACHE_ENTRY_ZIP_ARGS: -xr!*/ -ir-!*.tar.bz2 -ir-!*.conda # Exclude directories only cache downloaded tars
cache:
- C:\Miniconda37-x64\pkgs -> appveyor.yml
install:
- cmd: set "PATH=%MINICONDA%;%MINICONDA%\Scripts;%MINICONDA%\Library\bin;%PATH%
- cmd: where conda
- cmd: conda config --set always_yes yes --set changeps1 no --set channel_priority strict
- cmd: conda update -q conda
- cmd: conda install -c conda-forge conda-build
# Get the current master of all submodules
- cmd: git clone https://github.com/ilastik/ilastik-meta %IlASTIK_ROOT%\ilastik-meta
- cmd: cd %IlASTIK_ROOT%\ilastik-meta
- cmd: git submodule update --init --recursive
- cmd: git submodule foreach "git checkout master"
- ps: rm -Force -Recurse $env:IlASTIK_ROOT\ilastik-meta\ilastik\
# replace with whatever version of ilastik triggered the appveyor
- ps: cp -recurse C:\projects\ilastik $env:IlASTIK_ROOT\ilastik-meta\ilastik
# Point to the current ilastik-meta
- python ilastik/scripts/devenv.py create -n %ENV_NAME% -c ilastik-forge conda-forge defaults -p ilastik-dependencies-no-solvers
- conda clean -p
build: off
test_script:
- cmd: set PATH=%MINICONDA%;%MINICONDA%\Scripts;%MINICONDA%\Library\bin;%PATH%
- cmd: CALL activate %ENV_NAME%
- cmd: cd %IlASTIK_ROOT%\ilastik-meta\ilastik
- cmd: set VOLUMINA_SHOW_3D_WIDGET=0
- cmd: pytest --run-legacy-gui
# on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))