-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DEBUG: disable other ci providers/platforms
- Loading branch information
Showing
3 changed files
with
144 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,98 +1,98 @@ | ||
version: 2.1 | ||
jobs: | ||
checkout_ilastik: | ||
resource_class: medium | ||
working_directory: /root/ilastik/ilastik | ||
parallelism: 1 | ||
shell: /bin/bash --login | ||
environment: | ||
ILASTIK_ROOT: /root/ilastik | ||
docker: | ||
- image: condaforge/mambaforge | ||
steps: | ||
- checkout | ||
- run: | ||
name: initialize ilastik-meta, link to code | ||
command: > | ||
git clone https://github.com/ilastik/ilastik-meta ${ILASTIK_ROOT}/ilastik-meta && | ||
cd ${ILASTIK_ROOT}/ilastik-meta && | ||
git submodule init && | ||
git submodule update --recursive && | ||
git submodule foreach "git checkout main" && | ||
rm -rf ${ILASTIK_ROOT}/ilastik-meta/ilastik && | ||
ln -s ${ILASTIK_ROOT}/ilastik ${ILASTIK_ROOT}/ilastik-meta/ilastik | ||
- save_cache: | ||
name: store repo cache | ||
key: v1-repo-{{ .Environment.CIRCLE_SHA1 }} | ||
paths: | ||
- /root/ilastik | ||
# version: 2.1 | ||
# jobs: | ||
# checkout_ilastik: | ||
# resource_class: medium | ||
# working_directory: /root/ilastik/ilastik | ||
# parallelism: 1 | ||
# shell: /bin/bash --login | ||
# environment: | ||
# ILASTIK_ROOT: /root/ilastik | ||
# docker: | ||
# - image: condaforge/mambaforge | ||
# steps: | ||
# - checkout | ||
# - run: | ||
# name: initialize ilastik-meta, link to code | ||
# command: > | ||
# git clone https://github.com/ilastik/ilastik-meta ${ILASTIK_ROOT}/ilastik-meta && | ||
# cd ${ILASTIK_ROOT}/ilastik-meta && | ||
# git submodule init && | ||
# git submodule update --recursive && | ||
# git submodule foreach "git checkout main" && | ||
# rm -rf ${ILASTIK_ROOT}/ilastik-meta/ilastik && | ||
# ln -s ${ILASTIK_ROOT}/ilastik ${ILASTIK_ROOT}/ilastik-meta/ilastik | ||
# - save_cache: | ||
# name: store repo cache | ||
# key: v1-repo-{{ .Environment.CIRCLE_SHA1 }} | ||
# paths: | ||
# - /root/ilastik | ||
|
||
test: | ||
working_directory: /root/ilastik/ilastik | ||
resource_class: large | ||
parallelism: 1 | ||
shell: /bin/bash --login | ||
environment: | ||
ILASTIK_ROOT: /root/ilastik | ||
ON_CIRCLE_CI: 1 | ||
TEST_ENV_NAME: test-env | ||
VOLUMINA_SHOW_3D_WIDGET: 0 | ||
docker: | ||
- image: condaforge/mambaforge | ||
steps: | ||
- restore_cache: | ||
name: restoring dependency cache | ||
keys: | ||
# This branch if available | ||
- v1.4.14-dep-{{ .Branch }}-{{ epoch }} | ||
# Default branch if not | ||
- v1.4.14-dep-main- | ||
# Any branch if there are none on the default branch - this should be unnecessary if you have your default branch configured correctly | ||
- v1.4.14-dep- | ||
- restore_cache: | ||
name: restore ilastik-repo cache | ||
key: v1-repo-{{ .Environment.CIRCLE_SHA1 }} | ||
- run: | ||
name: configure base environment | ||
# due to an incompatibility of mamba with conda 4.13, one currently cannot update conda first | ||
command: > | ||
conda config --set always_yes yes --set changeps1 no --set channel_priority strict && | ||
mamba update -n base -c conda-forge --all && | ||
mamba install -n base -c conda-forge conda-build boa | ||
- run: | ||
name: install apt dependencies | ||
command: > | ||
apt-get update && | ||
apt-get install -yy libgl1-mesa-dev xvfb curl | ||
- run: | ||
name: create ilastik conda environment | ||
command: > | ||
cd ${ILASTIK_ROOT}/ilastik-meta && | ||
mamba env create --name ${TEST_ENV_NAME} --file ilastik/dev/environment-dev.yml && | ||
mamba install --name ${TEST_ENV_NAME} --freeze-installed -c ilastik-forge -c conda-forge mpi4py pytest-cov volumina && | ||
mamba run -n ${TEST_ENV_NAME} pip install -e ilastik | ||
# test: | ||
# working_directory: /root/ilastik/ilastik | ||
# resource_class: large | ||
# parallelism: 1 | ||
# shell: /bin/bash --login | ||
# environment: | ||
# ILASTIK_ROOT: /root/ilastik | ||
# ON_CIRCLE_CI: 1 | ||
# TEST_ENV_NAME: test-env | ||
# VOLUMINA_SHOW_3D_WIDGET: 0 | ||
# docker: | ||
# - image: condaforge/mambaforge | ||
# steps: | ||
# - restore_cache: | ||
# name: restoring dependency cache | ||
# keys: | ||
# # This branch if available | ||
# - v1.4.14-dep-{{ .Branch }}-{{ epoch }} | ||
# # Default branch if not | ||
# - v1.4.14-dep-main- | ||
# # Any branch if there are none on the default branch - this should be unnecessary if you have your default branch configured correctly | ||
# - v1.4.14-dep- | ||
# - restore_cache: | ||
# name: restore ilastik-repo cache | ||
# key: v1-repo-{{ .Environment.CIRCLE_SHA1 }} | ||
# - run: | ||
# name: configure base environment | ||
# # due to an incompatibility of mamba with conda 4.13, one currently cannot update conda first | ||
# command: > | ||
# conda config --set always_yes yes --set changeps1 no --set channel_priority strict && | ||
# mamba update -n base -c conda-forge --all && | ||
# mamba install -n base -c conda-forge conda-build boa | ||
# - run: | ||
# name: install apt dependencies | ||
# command: > | ||
# apt-get update && | ||
# apt-get install -yy libgl1-mesa-dev xvfb curl | ||
# - run: | ||
# name: create ilastik conda environment | ||
# command: > | ||
# cd ${ILASTIK_ROOT}/ilastik-meta && | ||
# mamba env create --name ${TEST_ENV_NAME} --file ilastik/dev/environment-dev.yml && | ||
# mamba install --name ${TEST_ENV_NAME} --freeze-installed -c ilastik-forge -c conda-forge mpi4py pytest-cov volumina && | ||
# mamba run -n ${TEST_ENV_NAME} pip install -e ilastik | ||
|
||
- run: | ||
name: run ilastik tests | ||
command: > | ||
cd ${ILASTIK_ROOT}/ilastik-meta/ilastik && | ||
mkdir test-results && | ||
xvfb-run --server-args="-screen 0 1024x768x24" mamba run -n ${TEST_ENV_NAME} pytest --cov-report=xml --cov=lazyflow --cov=ilastik --run-legacy-gui --junitxml=test-results/junit.xml && | ||
bash <(curl -s https://codecov.io/bash) | ||
- store_test_results: | ||
path: test-results | ||
- save_cache: | ||
name: store dependency cache | ||
key: v1.4.14-dep-{{ .Branch }}-{{ epoch }} | ||
paths: | ||
- /opt/conda/pkgs | ||
# - run: | ||
# name: run ilastik tests | ||
# command: > | ||
# cd ${ILASTIK_ROOT}/ilastik-meta/ilastik && | ||
# mkdir test-results && | ||
# xvfb-run --server-args="-screen 0 1024x768x24" mamba run -n ${TEST_ENV_NAME} pytest --cov-report=xml --cov=lazyflow --cov=ilastik --run-legacy-gui --junitxml=test-results/junit.xml && | ||
# bash <(curl -s https://codecov.io/bash) | ||
# - store_test_results: | ||
# path: test-results | ||
# - save_cache: | ||
# name: store dependency cache | ||
# key: v1.4.14-dep-{{ .Branch }}-{{ epoch }} | ||
# paths: | ||
# - /opt/conda/pkgs | ||
|
||
|
||
workflows: | ||
version: 2 | ||
build_and_test: | ||
jobs: | ||
- checkout_ilastik | ||
- test: | ||
requires: | ||
- checkout_ilastik | ||
# workflows: | ||
# version: 2 | ||
# build_and_test: | ||
# jobs: | ||
# - checkout_ilastik | ||
# - test: | ||
# requires: | ||
# - checkout_ilastik |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,49 @@ | ||
image: Visual Studio 2019 | ||
|
||
clone_folder: c:\projects\ilastik | ||
|
||
environment: | ||
ENV_NAME: test-env | ||
# set miniconda version explicitly | ||
MINIFORGE: C:\Miniforge | ||
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 | ||
|
||
|
||
install: | ||
- ps: | | ||
if (!(Test-Path $env:MINIFORGE)) { | ||
Write-Output "Downloading and installing Miniforge" | ||
Invoke-WebRequest https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Windows-x86_64.exe -OutFile miniforge.exe | ||
Start-Process -FilePath "miniforge.exe" -ArgumentList "/NoRegistry=1","/S","/D=$env:MINIFORGE" -Wait | ||
} | ||
else { | ||
Write-Output "Using cached Miniforge install" | ||
} | ||
- cmd: set PATH=%MINIFORGE%;%MINIFORGE%\Scripts;%MINIFORGE%\Library\bin;%PATH% | ||
- cmd: conda config --set always_yes yes --set changeps1 no --set channel_priority strict | ||
- cmd: conda update -n base -c conda-forge conda mamba | ||
- cmd: mamba install -n base -c conda-forge setuptools_scm | ||
- | | ||
mamba env create --name %ENV_NAME% --file dev\environment-dev.yml | ||
mamba install --name %ENV_NAME% --freeze-installed -c ilastik-forge -c conda-forge volumina | ||
mamba run -n %ENV_NAME% pip install -e . | ||
- conda clean -p | ||
|
||
build: off | ||
|
||
test_script: | ||
- cmd: CALL activate %ENV_NAME% | ||
- cmd: set VOLUMINA_SHOW_3D_WIDGET=0 | ||
- cmd: pytest --run-legacy-gui | ||
|
||
after_test: | ||
# don't cache the test environment to get clean builds every time | ||
- ps: Remove-Item -Path $env:MINIFORGE\envs\$env:ENV_NAME -Recurse -Force | ||
|
||
cache: | ||
- C:\Miniforge -> appveyor.yml, dev\environment-dev.yml | ||
|
||
# on_finish: | ||
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1')) | ||
# image: Visual Studio 2019 | ||
|
||
# clone_folder: c:\projects\ilastik | ||
|
||
# environment: | ||
# ENV_NAME: test-env | ||
# # set miniconda version explicitly | ||
# MINIFORGE: C:\Miniforge | ||
# 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 | ||
|
||
|
||
# install: | ||
# - ps: | | ||
# if (!(Test-Path $env:MINIFORGE)) { | ||
# Write-Output "Downloading and installing Miniforge" | ||
# Invoke-WebRequest https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Windows-x86_64.exe -OutFile miniforge.exe | ||
# Start-Process -FilePath "miniforge.exe" -ArgumentList "/NoRegistry=1","/S","/D=$env:MINIFORGE" -Wait | ||
# } | ||
# else { | ||
# Write-Output "Using cached Miniforge install" | ||
# } | ||
# - cmd: set PATH=%MINIFORGE%;%MINIFORGE%\Scripts;%MINIFORGE%\Library\bin;%PATH% | ||
# - cmd: conda config --set always_yes yes --set changeps1 no --set channel_priority strict | ||
# - cmd: conda update -n base -c conda-forge conda mamba | ||
# - cmd: mamba install -n base -c conda-forge setuptools_scm | ||
# - | | ||
# mamba env create --name %ENV_NAME% --file dev\environment-dev.yml | ||
# mamba install --name %ENV_NAME% --freeze-installed -c ilastik-forge -c conda-forge volumina | ||
# mamba run -n %ENV_NAME% pip install -e . | ||
# - conda clean -p | ||
|
||
# build: off | ||
|
||
# test_script: | ||
# - cmd: CALL activate %ENV_NAME% | ||
# - cmd: set VOLUMINA_SHOW_3D_WIDGET=0 | ||
# - cmd: pytest --run-legacy-gui | ||
|
||
# after_test: | ||
# # don't cache the test environment to get clean builds every time | ||
# - ps: Remove-Item -Path $env:MINIFORGE\envs\$env:ENV_NAME -Recurse -Force | ||
|
||
# cache: | ||
# - C:\Miniforge -> appveyor.yml, dev\environment-dev.yml | ||
|
||
# # on_finish: | ||
# # - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1')) |