Commit 29280deb authored by Duncan Macleod's avatar Duncan Macleod
Browse files

Merge branch 'render-windows' into 'testing'

Render environments for windows

See merge request computing/conda!469

[skip deploy]
parents b4f0b1cf 8aaf272e
Pipeline #298418 failed with stages
in 229 minutes and 55 seconds
......@@ -141,7 +141,7 @@ variables:
- !reference [".conda:base", before_script]
- conda config --file ${CONDARC} --append channels igwn
# install mamba
- retry conda install --quiet --yes --name base mamba
- retry conda install --quiet --yes --name base "mamba>=0.15.1"
# init XDG cache directories
- *init-xdg-cache
# install system requirements
......@@ -162,6 +162,13 @@ variables:
# init XDG cache directories
- *init-xdg-cache
.win: &win
extends:
- .linux
variables:
# proxy for CONDA_SUBDIR (that we can't set until we're ready)
SUBDIR: "win-64"
# -- render -------------------------------------
.render:
......@@ -179,6 +186,7 @@ variables:
# NOTE: we render everything every time so that the docs job
# can include all of the environments
- PLATFORM=$(python -c "print('${CI_JOB_NAME}'.split(':')[1])")
- if [[ ! -z "${SUBDIR}" ]]; then export CONDA_SUBDIR="${SUBDIR}"; fi
- xargs -t python ./scripts/render.py
packages
--config-file ./igwn_conda_config.yaml
......@@ -270,6 +278,21 @@ render:osx:testing:
- .osx
- .render:testing
render:win:stable:
extends:
- .win
- .render:stable
render:win:proposed:
extends:
- .win
- .render:proposed
render:win:testing:
extends:
- .win
- .render:testing
# -- test ---------------------------------------
.test:
......@@ -619,6 +642,9 @@ docs:
- render:osx:stable
- render:osx:proposed
- render:osx:testing
- render:win:stable
- render:win:proposed
- render:win:testing
before_script:
# init conda
- !reference [".conda:base", before_script]
......@@ -634,7 +660,7 @@ docs:
- python -u scripts/write_env_md.py
# copy environment YAML files into output HTML paths
- |
for OS_NAME in linux osx; do
for OS_NAME in linux osx win; do
_TARGET="docs/environments/${OS_NAME}/";
mkdir -p ${_TARGET};
cp -v environments/${OS_NAME}/*/*.yaml ${_TARGET};
......
......@@ -52,8 +52,9 @@ def write_environment(path, file=None):
# write link
print(
f"**Download:** "
f"[linux](linux/{path.name}), "
f"[osx](osx/{path.name}) ",
f"[linux-64](linux/{path.name}), "
f"[osx-64](osx/{path.name}) ",
f"[win-64](win/{path.name}) ",
file=file,
)
channels = env['channels']
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment