Skip to content

Commit 5e96db0

Browse files
authored
Merge pull request #264 from ocefpaf/rerender_36
Rerender
2 parents 1ad70b3 + 842781e commit 5e96db0

23 files changed

Lines changed: 214 additions & 263 deletions

.appveyor.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ platform:
2020
- x64
2121

2222
install:
23+
- cmd: set "CI=appveyor"
2324
# If there is a newer build queued for the same PR, cancel this one.
2425
- cmd: |
2526
powershell -Command "(New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/conda-forge/conda-forge-ci-setup-feedstock/master/recipe/conda_forge_ci_setup/ff_ci_pr_build.py', 'ff_ci_pr_build.py')"

.azure-pipelines/azure-pipelines-linux.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,34 +6,34 @@ jobs:
66
- job: linux
77
pool:
88
vmImage: ubuntu-16.04
9-
timeoutInMinutes: 240
9+
timeoutInMinutes: 360
1010
strategy:
1111
maxParallel: 8
1212
matrix:
1313
linux_:
1414
CONFIG: linux_
15-
UPLOAD_PACKAGES: False
15+
UPLOAD_PACKAGES: True
16+
DOCKER_IMAGE: condaforge/linux-anvil-comp7
1617
linux_aarch64_:
1718
CONFIG: linux_aarch64_
1819
UPLOAD_PACKAGES: True
20+
DOCKER_IMAGE: condaforge/linux-anvil-aarch64
1921
linux_ppc64le_:
2022
CONFIG: linux_ppc64le_
2123
UPLOAD_PACKAGES: True
24+
DOCKER_IMAGE: condaforge/linux-anvil-ppc64le
2225
steps:
23-
- script: |
24-
sudo pip install --upgrade pip
25-
sudo pip install setuptools shyaml
26-
displayName: Install dependencies
27-
28-
# configure qemu binfmt-misc running. This allows us to run docker containers
26+
# configure qemu binfmt-misc running. This allows us to run docker containers
2927
# embedded qemu-static
3028
- script: |
3129
docker run --rm --privileged multiarch/qemu-user-static:register --reset --credential yes
3230
ls /proc/sys/fs/binfmt_misc/
3331
condition: not(startsWith(variables['CONFIG'], 'linux_64'))
3432
displayName: Configure binfmt_misc
3533
36-
- script: .azure-pipelines/run_docker_build.sh
34+
- script: |
35+
export CI=azure
36+
.azure-pipelines/run_docker_build.sh
3737
displayName: Run docker build
3838
env:
3939
BINSTAR_TOKEN: $(BINSTAR_TOKEN)

.azure-pipelines/azure-pipelines-osx.yml

Lines changed: 13 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ jobs:
66
- job: osx
77
pool:
88
vmImage: macOS-10.13
9-
timeoutInMinutes: 240
9+
timeoutInMinutes: 360
1010
strategy:
1111
maxParallel: 8
1212
matrix:
1313
osx_:
1414
CONFIG: osx_
15-
UPLOAD_PACKAGES: False
15+
UPLOAD_PACKAGES: True
1616

1717
steps:
1818
# TODO: Fast finish on azure pipelines?
@@ -28,29 +28,22 @@ jobs:
2828
rm ~/uninstall_homebrew
2929
displayName: Remove homebrew
3030
31-
- script: |
32-
echo "Installing Miniconda"
33-
set -x -e
34-
curl -o $(Build.StagingDirectory)/miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
35-
chmod +x $(Build.StagingDirectory)/miniconda.sh
36-
$(Build.StagingDirectory)/miniconda.sh -b -p $(Build.StagingDirectory)/miniconda
37-
export PATH=$(Build.StagingDirectory)/miniconda/bin:$PATH
38-
echo "Setting up Conda environment"
39-
displayName: 'Install miniconda'
31+
- bash: |
32+
echo "##vso[task.prependpath]$CONDA/bin"
33+
sudo chown -R $USER $CONDA
34+
displayName: Add conda to PATH
4035
4136
- script: |
42-
export PATH=$(Build.StagingDirectory)/miniconda/bin:$PATH
43-
set -x -e
37+
source activate base
4438
conda install -n base -c conda-forge --quiet --yes conda-forge-ci-setup=2 conda-build
4539
displayName: 'Add conda-forge-ci-setup=2'
4640
4741
- script: |
48-
set -x -e
49-
export PATH=$(Build.StagingDirectory)/miniconda/bin:$PATH
42+
source activate base
5043
echo "Configuring conda."
5144
5245
setup_conda_rc ./ ./recipe ./.ci_support/${CONFIG}.yaml
53-
46+
export CI=azure
5447
source run_conda_forge_build_setup
5548
conda update --yes --quiet --override-channels -c conda-forge -c defaults --all
5649
env: {
@@ -59,26 +52,22 @@ jobs:
5952
displayName: Configure conda and conda-build
6053
6154
- script: |
62-
export PATH=$(Build.StagingDirectory)/miniconda/bin:$PATH
63-
set -x -e
55+
source activate base
6456
mangle_compiler ./ ./recipe ./.ci_support/${CONFIG}.yaml
6557
displayName: Mangle compiler
6658
6759
- script: |
68-
export PATH=$(Build.StagingDirectory)/miniconda/bin:$PATH
69-
set -x -e
60+
source activate base
7061
make_build_number ./ ./recipe ./.ci_support/${CONFIG}.yaml
7162
displayName: Generate build number clobber file
7263
7364
- script: |
74-
export PATH=$(Build.StagingDirectory)/miniconda/bin:$PATH
75-
set -x -e
65+
source activate base
7666
conda build ./recipe -m ./.ci_support/${CONFIG}.yaml --clobber-file ./.ci_support/clobber_${CONFIG}.yaml
7767
displayName: Build recipe
7868
7969
- script: |
80-
export PATH=$(Build.StagingDirectory)/miniconda/bin:$PATH
81-
set -x -e
70+
source activate base
8271
upload_package ./ ./recipe ./.ci_support/${CONFIG}.yaml
8372
displayName: Upload recipe
8473
env:

.azure-pipelines/azure-pipelines-win.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
- job: win
77
pool:
88
vmImage: vs2017-win2016
9-
timeoutInMinutes: 240
9+
timeoutInMinutes: 360
1010
strategy:
1111
maxParallel: 4
1212
matrix:
@@ -65,11 +65,11 @@ jobs:
6565

6666
# Configure the VM
6767
- script: setup_conda_rc .\ .\recipe .\.ci_support\%CONFIG%.yaml
68-
68+
6969
# Configure the VM.
7070
- script: |
71+
set "CI=azure"
7172
run_conda_forge_build_setup
72-
7373
displayName: conda-forge build setup
7474
7575

.azure-pipelines/build_steps.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77

88
set -xeuo pipefail
99
export PYTHONUNBUFFERED=1
10-
export FEEDSTOCK_ROOT=/home/conda/feedstock_root
11-
export RECIPE_ROOT=/home/conda/recipe_root
12-
export CI_SUPPORT=/home/conda/feedstock_root/.ci_support
10+
export FEEDSTOCK_ROOT="${FEEDSTOCK_ROOT:-/home/conda/feedstock_root}"
11+
export RECIPE_ROOT="${RECIPE_ROOT:-/home/conda/recipe_root}"
12+
export CI_SUPPORT="${FEEDSTOCK_ROOT}/.ci_support"
1313
export CONFIG_FILE="${CI_SUPPORT}/${CONFIG}.yaml"
1414

1515
cat >~/.condarc <<CONDARC
1616
1717
conda-build:
18-
root-dir: /home/conda/feedstock_root/build_artifacts
18+
root-dir: ${FEEDSTOCK_ROOT}/build_artifacts
1919
2020
CONDARC
2121

@@ -24,7 +24,8 @@ conda install --yes --quiet conda-forge-ci-setup=2 conda-build -c conda-forge
2424
# set up the condarc
2525
setup_conda_rc "${FEEDSTOCK_ROOT}" "${RECIPE_ROOT}" "${CONFIG_FILE}"
2626

27-
run_conda_forge_build_setup
27+
source run_conda_forge_build_setup
28+
2829

2930
# Install the yum requirements defined canonically in the
3031
# "recipe/yum_requirements.txt" file. After updating that file,
@@ -43,4 +44,4 @@ if [[ "${UPLOAD_PACKAGES}" != "False" ]]; then
4344
upload_package "${FEEDSTOCK_ROOT}" "${RECIPE_ROOT}" "${CONFIG_FILE}"
4445
fi
4546

46-
touch "/home/conda/feedstock_root/build_artifacts/conda-forge-build-done-${CONFIG}"
47+
touch "${FEEDSTOCK_ROOT}/build_artifacts/conda-forge-build-done-${CONFIG}"

.azure-pipelines/run_docker_build.sh

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# changes to this script, consider a proposal to conda-smithy so that other feedstocks can also
66
# benefit from the improvement.
77

8-
set -xeuo pipefail
8+
set -xeo pipefail
99

1010
THISDIR="$( cd "$( dirname "$0" )" >/dev/null && pwd )"
1111
PROVIDER_DIR="$(basename $THISDIR)"
@@ -28,18 +28,33 @@ fi
2828
ARTIFACTS="$FEEDSTOCK_ROOT/build_artifacts"
2929

3030
if [ -z "$CONFIG" ]; then
31-
echo "Need to set CONFIG env variable"
31+
set +x
32+
FILES=`ls .ci_support/linux_*`
33+
CONFIGS=""
34+
for file in $FILES; do
35+
CONFIGS="${CONFIGS}'${file:12:-5}' or ";
36+
done
37+
echo "Need to set CONFIG env variable. Value can be one of ${CONFIGS:0:-4}"
3238
exit 1
3339
fi
3440

35-
pip install shyaml
36-
DOCKER_IMAGE=$(cat "${FEEDSTOCK_ROOT}/.ci_support/${CONFIG}.yaml" | shyaml get-value docker_image.0 condaforge/linux-anvil-comp7 )
41+
if [ -z "${DOCKER_IMAGE}" ]; then
42+
SHYAML_INSTALLED="$(shyaml --version || echo NO)"
43+
if [ "${SHYAML_INSTALLED}" == "NO" ]; then
44+
echo "WARNING: DOCKER_IMAGE variable not set and shyaml not installed. Falling back to condaforge/linux-anvil-comp7"
45+
DOCKER_IMAGE="condaforge/linux-anvil-comp7"
46+
else
47+
DOCKER_IMAGE="$(cat "${FEEDSTOCK_ROOT}/.ci_support/${CONFIG}.yaml" | shyaml get-value docker_image.0 condaforge/linux-anvil-comp7 )"
48+
fi
49+
fi
3750

3851
mkdir -p "$ARTIFACTS"
3952
DONE_CANARY="$ARTIFACTS/conda-forge-build-done-${CONFIG}"
4053
rm -f "$DONE_CANARY"
41-
# Not all providers run with a real tty. Disable using one
42-
DOCKER_RUN_ARGS=" "
54+
55+
if [ -z "${CI}" ]; then
56+
DOCKER_RUN_ARGS="-it "
57+
fi
4358

4459
export UPLOAD_PACKAGES="${UPLOAD_PACKAGES:-True}"
4560
docker run ${DOCKER_RUN_ARGS} \
@@ -49,6 +64,7 @@ docker run ${DOCKER_RUN_ARGS} \
4964
-e BINSTAR_TOKEN \
5065
-e HOST_USER_ID \
5166
-e UPLOAD_PACKAGES \
67+
-e CI \
5268
$DOCKER_IMAGE \
5369
bash \
5470
/home/conda/feedstock_root/${PROVIDER_DIR}/build_steps.sh

.ci_support/linux_.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,16 @@ bzip2:
22
- '1'
33
c_compiler:
44
- gcc
5+
c_compiler_version:
6+
- '7'
57
channel_sources:
68
- conda-forge,defaults
79
channel_targets:
810
- conda-forge main
911
cxx_compiler:
1012
- gxx
13+
cxx_compiler_version:
14+
- '7'
1115
docker_image:
1216
- condaforge/linux-anvil-comp7
1317
libffi:
@@ -36,7 +40,7 @@ pin_run_as_build:
3640
zlib:
3741
max_pin: x.x
3842
readline:
39-
- '7.0'
43+
- '8.0'
4044
sqlite:
4145
- '3'
4246
tk:

.ci_support/linux_aarch64_.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ bzip2:
44
- '1'
55
c_compiler:
66
- gcc
7+
c_compiler_version:
8+
- '7'
79
cdt_arch:
810
- aarch64
911
cdt_name:
@@ -14,6 +16,8 @@ channel_targets:
1416
- conda-forge main
1517
cxx_compiler:
1618
- gxx
19+
cxx_compiler_version:
20+
- '7'
1721
docker_image:
1822
- condaforge/linux-anvil-aarch64
1923
libffi:
@@ -42,7 +46,7 @@ pin_run_as_build:
4246
zlib:
4347
max_pin: x.x
4448
readline:
45-
- '7.0'
49+
- '8.0'
4650
sqlite:
4751
- '3'
4852
tk:

.ci_support/linux_ppc64le_.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,16 @@ bzip2:
22
- '1'
33
c_compiler:
44
- gcc
5+
c_compiler_version:
6+
- '8'
57
channel_sources:
68
- conda-forge,defaults
79
channel_targets:
810
- conda-forge main
911
cxx_compiler:
1012
- gxx
13+
cxx_compiler_version:
14+
- '8'
1115
docker_image:
1216
- condaforge/linux-anvil-ppc64le
1317
libffi:
@@ -34,7 +38,7 @@ pin_run_as_build:
3438
zlib:
3539
max_pin: x.x
3640
readline:
37-
- '7.0'
41+
- '8.0'
3842
sqlite:
3943
- '3'
4044
xz:

.ci_support/osx_.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,16 @@ bzip2:
44
- '1'
55
c_compiler:
66
- clang
7+
c_compiler_version:
8+
- '4'
79
channel_sources:
810
- conda-forge,defaults
911
channel_targets:
1012
- conda-forge main
1113
cxx_compiler:
1214
- clangxx
15+
cxx_compiler_version:
16+
- '4'
1317
libffi:
1418
- '3.2'
1519
macos_machine:
@@ -40,7 +44,7 @@ pin_run_as_build:
4044
zlib:
4145
max_pin: x.x
4246
readline:
43-
- '7.0'
47+
- '8.0'
4448
sqlite:
4549
- '3'
4650
tk:

0 commit comments

Comments
 (0)