Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
Merge pull request #221 from kjsanger/bugfix/correct-build-channels
Browse files Browse the repository at this point in the history
Use the correct build channel syntax for recipebook
  • Loading branch information
mksanger authored Jan 29, 2021
2 parents 55dc403 + b69e8bd commit e6f5e99
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 23 deletions.
15 changes: 4 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@

dist: xenial
dist: bionic
language: python
python: 3.7
python: 3.8

services: docker

env:
- >
IRODS_IMAGE=wsinpg/ub-12.04-conda-irods-4.1:0.9
CONDA_IMAGE=wsinpg/ub-12.04-conda:0.9
CONDA_IMAGE=wsinpg/ub-12.04-conda:1.1
CONDA_CHANNEL=https://dnap.cog.sanger.ac.uk/npg/conda/devel/generic
COMPARE_BRANCH=origin/devel
before_install:
- docker --version
# We should rarely need to pull the iRODS build image, so we don't
# do it preemptively here
- docker pull $CONDA_IMAGE

install:
Expand All @@ -32,19 +29,15 @@ script:
./tools/bin/recipebook --changes $COMPARE_BRANCH recipes | ./tools/bin/build
--recipes-dir $TRAVIS_BUILD_DIR
--artefacts-dir $TRAVIS_BUILD_DIR/conda-artefacts
--irods-build-image $IRODS_IMAGE
--conda-build-image $CONDA_IMAGE
--build-channel $CONDA_CHANNEL
--verbose
- >
./tools/bin/recipebook --changes $COMPARE_BRANCH red-recipes | ./tools/bin/build
--recipes-dir $TRAVIS_BUILD_DIR
--artefacts-dir $TRAVIS_BUILD_DIR/conda-artefacts
--irods-build-image $IRODS_IMAGE
--conda-build-image $CONDA_IMAGE
--build-channel $CONDA_CHANNEL
--build-channel conda-forge
--build-channel bioconda
--build-channel $CONDA_CHANNEL conda-forge bioconda
--verbose
- kill %1
- ls -l $TRAVIS_BUILD_DIR/conda-artefacts/linux-64
14 changes: 2 additions & 12 deletions tools/bin/build
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright © 2019, 2020 Genome Research Ltd. All rights reserved.
# Copyright © 2019, 2020, 2021 Genome Research Ltd. All rights reserved.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -36,7 +36,6 @@ DEFAULT_RECIPES_MOUNT="/home/conda/recipes"
DEFAULT_ARTEFACTS_DIR=os.path.expandvars("$HOME/conda-artefacts")
DEFAULT_ARTEFACTS_MOUNT="/opt/conda/conda-bld"

IRODS_BUILD_IMAGE="wsinpg/ub-12.04-conda-irods-4.1:latest"
DEFAULT_BUILD_IMAGE="wsinpg/ub-12.04-conda:latest"

description = """
Expand Down Expand Up @@ -80,10 +79,6 @@ parser.add_argument("--build-channel","--build-channels",
"defaults to no extra channels",
type=str, nargs="*", default=[])

parser.add_argument("--irods-build-image",
help="The Docker image used to build iRODS 4.1, "
"defaults to {}".format(IRODS_BUILD_IMAGE),
type=str, nargs="?", default=IRODS_BUILD_IMAGE)
parser.add_argument("--conda-build-image",
help="Docker image used to build packages, "
"defaults to {}".format(DEFAULT_BUILD_IMAGE),
Expand Down Expand Up @@ -126,16 +121,11 @@ docker_pull(args.conda_build_image)
fail = False

for line in sys.stdin.readlines():
line.rstrip();
line.rstrip()
name, version, path = line.split()
log.info("Working on %s %s %s", name, version, path)

build_image = args.conda_build_image
if name == "irods" and version[:4]=="4.1.":
build_image = args.irods_build_image
log.info("Using image %s", build_image)
docker_pull(args.irods_build_image)

build_script = \
'export CONDA_BLD_PATH="{}" ; '.format(args.artefacts_mount)
build_script += \
Expand Down

0 comments on commit e6f5e99

Please sign in to comment.