diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1ca218d3bf46f1798f288de17bafc93850a5ead8..3552f4ce8edc03e0c9c488c5e37dbf5fd468edb3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -18,7 +18,7 @@ stages: - python3 ./bob/devtools/bootstrap.py -vv build - source ${CONDA_ROOT}/etc/profile.d/conda.sh - conda activate base - - python3 ./bob/devtools/build.py -vv + - python3 ./bob/devtools/build.py -vv --twine-check artifacts: expire_in: 1 week cache: @@ -26,8 +26,10 @@ stages: - miniconda.sh -.build_linux_template: +build_linux: extends: .build_template + variables: + BUILD_EGG: "true" tags: - docker image: continuumio/conda-concourse-ci @@ -36,6 +38,8 @@ stages: - rm -rf /root/.conda artifacts: paths: + - dist/*.zip + - sphinx - ${CONDA_ROOT}/conda-bld/linux-64/*.conda - ${CONDA_ROOT}/conda-bld/noarch/*.conda - ${CONDA_ROOT}/conda-bld/linux-64/*.tar.bz2 @@ -44,7 +48,7 @@ stages: key: "linux-cache" -.build_macosx_template: +build_macosx: extends: .build_template tags: - macosx @@ -58,52 +62,6 @@ stages: key: "macosx-cache" -build_linux_36: - extends: .build_linux_template - variables: - PYTHON_VERSION: "3.6" - -build_linux_37: - extends: .build_linux_template - variables: - PYTHON_VERSION: "3.7" - -build_linux_38: - extends: .build_linux_template - variables: - PYTHON_VERSION: "3.8" - BUILD_EGG: "true" - script: - - python3 ./bob/devtools/bootstrap.py -vv build - - source ${CONDA_ROOT}/etc/profile.d/conda.sh - - conda activate base - - python3 ./bob/devtools/build.py -vv --twine-check - artifacts: - paths: - - dist/*.zip - - sphinx - - ${CONDA_ROOT}/conda-bld/linux-64/*.conda - - ${CONDA_ROOT}/conda-bld/noarch/*.conda - - ${CONDA_ROOT}/conda-bld/linux-64/*.tar.bz2 - - ${CONDA_ROOT}/conda-bld/noarch/*.tar.bz2 - - -build_macosx_36: - extends: .build_macosx_template - variables: - PYTHON_VERSION: "3.6" - -build_macosx_37: - extends: .build_macosx_template - variables: - PYTHON_VERSION: "3.7" - -build_macosx_38: - extends: .build_macosx_template - variables: - PYTHON_VERSION: "3.8" - - # Deploy targets .deploy_template: stage: deploy @@ -118,12 +76,8 @@ build_macosx_38: - bdt ci deploy -vv - bdt ci clean -vv dependencies: - - build_linux_36 - - build_linux_37 - - build_linux_38 - - build_macosx_36 - - build_macosx_37 - - build_macosx_38 + - build_linux + - build_macosx tags: - docker cache: @@ -164,12 +118,8 @@ pypi: - bdt ci pypi -vv dist/*.zip - bdt ci clean -vv dependencies: - - build_linux_36 - - build_linux_37 - - build_linux_38 - - build_macosx_36 - - build_macosx_37 - - build_macosx_38 + - build_linux + - build_macosx tags: - docker cache: diff --git a/conda/conda_build_config.yaml b/conda/conda_build_config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a4c56ab1cd521d843cba736f4eb0ee212f14943d --- /dev/null +++ b/conda/conda_build_config.yaml @@ -0,0 +1,24 @@ +macos_min_version: + - 10.9 +macos_machine: + - x86_64-apple-darwin13.4.0 +MACOSX_DEPLOYMENT_TARGET: + - 10.9 +CONDA_BUILD_SYSROOT: # [osx] + - /opt/MacOSX10.9.sdk # [osx] +# This helps CMAKE find the sysroot. See +# https://cmake.org/cmake/help/v3.11/variable/CMAKE_OSX_SYSROOT.html +SDKROOT: # [osx] + - /opt/MacOSX10.9.sdk # [osx] +# makes autotools verbose +VERBOSE_AT: + - V=1 +# makes cmake verbose +VERBOSE_CM: + - VERBOSE=1 + +## the dependencies that we build against multiple versions +python: + - 3.6 + - 3.7 + - 3.8 diff --git a/conda/recipe_append.yaml b/conda/recipe_append.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c0481152b266e4b8d412ba2750661527a880c518 --- /dev/null +++ b/conda/recipe_append.yaml @@ -0,0 +1,4 @@ +build: + script_env: + - DOCSERVER + - NOSE_EVAL_ATTR