Commit 2d608123 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

Merge branch 'bf/prevmanifest' into 'master'

Bf/prevmanifest

See merge request fsl/conda/manifest-rules!6
parents 8c6b527b b8cae996
......@@ -3,10 +3,10 @@ stages:
- check-version
# Only run on merge requests
# Don't run on merge requests
workflow:
rules:
- if: '$CI_MERGE_REQUEST_ID != null'
- if: '$CI_MERGE_REQUEST_ID == null'
test:
......@@ -37,6 +37,9 @@ check-version:
tags:
- fsl-ci
- docker
rules:
- if: '$CI_COMMIT_BRANCH == "master"'
when: never
script:
- git fetch origin master
- thisver=$( cat manifest_rules/__init__.py | grep __version__ | cut -d " " -f 3 | tr -d "'")
......
#!/usr/bin/env python
__version__ = '0.3.2'
__version__ = '0.3.3'
......@@ -68,10 +68,12 @@ def load_previous_manifest(release_info):
# the environment file is not available
versions = dict(manifest.get('versions', {}))
for version, builds in versions.items():
if version == 'latest':
continue
for i, build in enumerate(list(builds)):
try:
with tempdir():
download_file(build['url'], 'env.yml')
download_file(build['environment'], 'env.yml')
except Exception:
print(f'WARNING: Build environment file '
f'is not available: {build}')
......
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