Skip to content

Commit

Permalink
MNT: Updated the feedstock for conda-smithy version 2.1.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
conda-forge-admin authored and u52131 committed Feb 24, 2017
1 parent 29a2b22 commit d594acd
Show file tree
Hide file tree
Showing 8 changed files with 85 additions and 54 deletions.
5 changes: 5 additions & 0 deletions .gitattributes
@@ -0,0 +1,5 @@
* text=auto

meta.yaml text eol=lf
build.sh text eol=lf
bld.bat text eol=crlf
29 changes: 24 additions & 5 deletions .travis.yml
Expand Up @@ -4,33 +4,52 @@
language: generic

os: osx
osx_image: beta-xcode6.1
osx_image: xcode6.4

env:
matrix:

- CONDA_PY=27
- CONDA_PY=34
- CONDA_PY=35
- CONDA_PY=36
global:
# The BINSTAR_TOKEN secure variable. This is defined canonically in conda-forge.yml.
- secure: "kVB0gDtYrmH8RXIRzKiSpVcly85qPNsKGtyqzMAf3hyiuMmhSRM9k6t1aFmLjf/unNrMXHzoIW8mUZRwMl4Gnng1x9SMvI2qPgjpTT90TGINvZJLWJt00ir5L9qQx7Zg/goLKKTYqI2v8kRVAJO6H6PhCKajP0ntiLNkFO2aho03YlLBlDWpj1dzl1AXN08tjbTum/vtBA2XmQJMgNhZfSpMQMx1dcD/yIUGWGbwnXptqiRIAQSqSd31PUW30vwIJBVXmLtTS6ctUu7K9gIyvpJZQOe1Y+7jewjCBPTnbzgYArczgYjb2cP9KueI+b1218fxA4ooaDcr2zM/FuFFKy7RkQWF9zfntCL+2CVL2L86E9Qt9Ho2GCtRW6SM/I6asf0O85yydC8SvbHPXoqyhFHXsNjQb3Byxb0O0UsZl4NPPWKJuCUxt9XLqWVQcPagoa32ENFfOXX+Qm3VmOiiG1T5JHRBWAOe5Gb3hxv6HlcYyTcMHdxsD8YSWwrIcaAVjcMMhL3VZtmbRCr+Ob3n6R03GSGMwMfVshUgOoJsykw9PZTQseXXDH1GcJWtZKovdOuLZTKYrlsbPTR7bdCKxZFspW7xx03GC8AMzpbhw5dYbIH+ziehYUY4xF52kOjPYmBlEjMOB9xlw/SbMcW2XgoPhOdkZ7OBvhCMd8LIcss="


before_install:
# Fast finish the PR.
- |
(curl https://raw.githubusercontent.com/conda-forge/conda-forge-build-setup-feedstock/master/recipe/ff_ci_pr_build.py | \
python - -v --ci "travis" "${TRAVIS_REPO_SLUG}" "${TRAVIS_BUILD_NUMBER}" "${TRAVIS_PULL_REQUEST}") || exit 1
# Remove homebrew.
- brew remove --force $(brew list)
- brew cleanup -s
- rm -rf $(brew --cache)
- |
echo ""
echo "Removing homebrew from Travis CI to avoid conflicts."
curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall > ~/uninstall_homebrew
chmod +x ~/uninstall_homebrew
~/uninstall_homebrew -fq
rm ~/uninstall_homebrew
install:
# Install Miniconda.
- |
echo ""
echo "Installing a fresh version of Miniconda."
MINICONDA_URL="https://repo.continuum.io/miniconda"
MINICONDA_FILE="Miniconda3-latest-MacOSX-x86_64.sh"
curl -L -O "${MINICONDA_URL}/${MINICONDA_FILE}"
bash $MINICONDA_FILE -b
# Configure conda.
- |
echo ""
echo "Configuring conda."
source /Users/travis/miniconda3/bin/activate root
conda config --remove channels defaults
conda config --add channels defaults
conda config --add channels conda-forge
conda config --set show_channel_urls true
conda install --yes --quiet conda-forge-build-setup
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
@@ -1,5 +1,5 @@
BSD 3-clause license
Copyright (c) conda-forge
Copyright (c) 2015-2017, conda-forge
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Expand Down
25 changes: 12 additions & 13 deletions README.md
Expand Up @@ -11,6 +11,18 @@ Summary: Jupyter Dashboards Layout Extension



Current build status
====================

Linux: [![Circle CI](https://circleci.com/gh/conda-forge/jupyter_dashboards-feedstock.svg?style=shield)](https://circleci.com/gh/conda-forge/jupyter_dashboards-feedstock)
OSX: [![TravisCI](https://travis-ci.org/conda-forge/jupyter_dashboards-feedstock.svg?branch=master)](https://travis-ci.org/conda-forge/jupyter_dashboards-feedstock)
Windows: [![AppVeyor](https://ci.appveyor.com/api/projects/status/github/conda-forge/jupyter_dashboards-feedstock?svg=True)](https://ci.appveyor.com/project/conda-forge/jupyter-dashboards-feedstock/branch/master)

Current release info
====================
Version: [![Anaconda-Server Badge](https://anaconda.org/conda-forge/jupyter_dashboards/badges/version.svg)](https://anaconda.org/conda-forge/jupyter_dashboards)
Downloads: [![Anaconda-Server Badge](https://anaconda.org/conda-forge/jupyter_dashboards/badges/downloads.svg)](https://anaconda.org/conda-forge/jupyter_dashboards)

Installing jupyter_dashboards
=============================

Expand All @@ -33,7 +45,6 @@ conda search jupyter_dashboards --channel conda-forge
```



About conda-forge
=================

Expand Down Expand Up @@ -68,18 +79,6 @@ Terminology
**conda-forge** - the place where the feedstock and smithy live and work to
produce the finished article (built conda distributions)

Current build status
====================

Linux: [![Circle CI](https://circleci.com/gh/conda-forge/jupyter_dashboards-feedstock.svg?style=shield)](https://circleci.com/gh/conda-forge/jupyter_dashboards-feedstock)
OSX: [![TravisCI](https://travis-ci.org/conda-forge/jupyter_dashboards-feedstock.svg?branch=master)](https://travis-ci.org/conda-forge/jupyter_dashboards-feedstock)
Windows: [![AppVeyor](https://ci.appveyor.com/api/projects/status/github/conda-forge/jupyter_dashboards-feedstock?svg=True)](https://ci.appveyor.com/project/conda-forge/jupyter-dashboards-feedstock/branch/master)

Current release info
====================
Version: [![Anaconda-Server Badge](https://anaconda.org/conda-forge/jupyter_dashboards/badges/version.svg)](https://anaconda.org/conda-forge/jupyter_dashboards)
Downloads: [![Anaconda-Server Badge](https://anaconda.org/conda-forge/jupyter_dashboards/badges/downloads.svg)](https://anaconda.org/conda-forge/jupyter_dashboards)


Updating jupyter_dashboards-feedstock
=====================================
Expand Down
52 changes: 23 additions & 29 deletions appveyor.yml
Expand Up @@ -4,38 +4,39 @@

environment:

CONDA_INSTALL_LOCN: "C:\\conda"

# SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
# /E:ON and /V:ON options are not enabled in the batch script intepreter
# See: http://stackoverflow.com/a/13751649/163740
CMD_IN_ENV: "cmd /E:ON /V:ON /C obvci_appveyor_python_build_env.cmd"

# We set a default Python version for the miniconda that is to be installed. This can be
# overridden in the matrix definition where appropriate.
CONDA_PY: "27"
BINSTAR_TOKEN:
# The BINSTAR_TOKEN secure variable. This is defined canonically in conda-forge.yml.
secure: MP4hZYylDyUWEsrt3u3cod2sbFeRwUziH02mvQOdbjsTO/l1yIxDkP/76rSIjcGC

matrix:
- TARGET_ARCH: x86
CONDA_PY: 27
CONDA_INSTALL_LOCN: C:\\Miniconda

- TARGET_ARCH: x64
CONDA_PY: 27
CONDA_INSTALL_LOCN: C:\\Miniconda-x64

- TARGET_ARCH: x86
CONDA_PY: 34
CONDA_PY: 35
CONDA_INSTALL_LOCN: C:\\Miniconda35

- TARGET_ARCH: x64
CONDA_PY: 34
CONDA_PY: 35
CONDA_INSTALL_LOCN: C:\\Miniconda35-x64

- TARGET_ARCH: x86
CONDA_PY: 35
CONDA_PY: 36
CONDA_INSTALL_LOCN: C:\\Miniconda35

- TARGET_ARCH: x64
CONDA_PY: 35
CONDA_PY: 36
CONDA_INSTALL_LOCN: C:\\Miniconda35-x64


# We always use a 64-bit machine, but can build x86 distributions
Expand All @@ -45,35 +46,28 @@ platform:

install:
# If there is a newer build queued for the same PR, cancel this one.
# The AppVeyor 'rollout builds' option is supposed to serve the same
# purpose but it is problematic because it tends to cancel builds pushed
# directly to master instead of just PR builds (or the converse).
# credits: JuliaLang developers.
- ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod `
https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
throw "There are newer queued builds for this pull request, failing early." }
- cmd: |
curl https://raw.githubusercontent.com/conda-forge/conda-forge-build-setup-feedstock/master/recipe/ff_ci_pr_build.py > ff_ci_pr_build.py
ff_ci_pr_build -v --ci "appveyor" "%APPVEYOR_ACCOUNT_NAME%/%APPVEYOR_PROJECT_SLUG%" "%APPVEYOR_BUILD_NUMBER%" "%APPVEYOR_PULL_REQUEST_NUMBER%"
del ff_ci_pr_build.py
# Cywing's git breaks conda-build. (See https://github.com/conda-forge/conda-smithy-feedstock/pull/2.)
- cmd: rmdir C:\cygwin /s /q
- appveyor DownloadFile "https://raw.githubusercontent.com/conda-forge/conda-smithy/e976c7e84bb3c4846e7562afd1a42c4b535b51f5/bootstrap-obvious-ci-and-miniconda.py"
- cmd: python bootstrap-obvious-ci-and-miniconda.py %CONDA_INSTALL_LOCN% %TARGET_ARCH% %CONDA_PY:~0,1% --without-obvci

# Add a hack to switch to `conda` version `4.1.12` before activating.
# This is required to handle a long path activation issue.
# Please see PR ( https://github.com/conda/conda/pull/3349 ).
- cmd: set "OLDPATH=%PATH%"
- cmd: set "PATH=%CONDA_INSTALL_LOCN%\\Scripts;%CONDA_INSTALL_LOCN%\\Library\\bin;%PATH%"
- cmd: conda install --yes --quiet conda=4.1.12
- cmd: set "PATH=%OLDPATH%"
- cmd: set "OLDPATH="

# Add path, activate `conda` and update conda.
- cmd: call %CONDA_INSTALL_LOCN%\Scripts\activate.bat
- cmd: conda update --yes --quiet conda

- cmd: set PYTHONUNBUFFERED=1

# Add our channels.
- cmd: conda config --set show_channel_urls true
- cmd: conda install -c pelson/channel/development --yes --quiet obvious-ci
- cmd: conda config --remove channels defaults
- cmd: conda config --add channels defaults
- cmd: conda config --add channels conda-forge

# Configure the VM.
- cmd: conda install -n root --quiet --yes obvious-ci
- cmd: conda install -n root --quiet --yes conda-forge-build-setup
- cmd: run_conda_forge_build_setup

Expand Down
4 changes: 4 additions & 0 deletions ci_support/fast_finish_ci_pr_build.sh
@@ -0,0 +1,4 @@
#!/bin/bash

curl https://raw.githubusercontent.com/conda-forge/conda-forge-build-setup-feedstock/master/recipe/ff_ci_pr_build.py | \
python - -v --ci "circle" "${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}" "${CIRCLE_BUILD_NUM}" "${CIRCLE_PR_NUMBER}"
21 changes: 15 additions & 6 deletions ci_support/run_docker_build.sh
Expand Up @@ -14,7 +14,7 @@ config=$(cat <<CONDARC
channels:
- conda-forge
- defaults # As we need conda-build
- defaults
conda-build:
root-dir: /feedstock_root/build_artefacts
Expand All @@ -24,12 +24,14 @@ show_channel_urls: true
CONDARC
)

rm -f "$FEEDSTOCK_ROOT/build_artefacts/conda-forge-build-done"

cat << EOF | docker run -i \
-v ${RECIPE_ROOT}:/recipe_root \
-v ${FEEDSTOCK_ROOT}:/feedstock_root \
-v "${RECIPE_ROOT}":/recipe_root \
-v "${FEEDSTOCK_ROOT}":/feedstock_root \
-a stdin -a stdout -a stderr \
condaforge/linux-anvil \
bash || exit $?
bash || exit 1
export BINSTAR_TOKEN=${BINSTAR_TOKEN}
export PYTHONUNBUFFERED=1
Expand All @@ -49,14 +51,21 @@ source run_conda_forge_build_setup
upload_or_check_non_existence /recipe_root conda-forge --channel=main || exit 1
set -x
export CONDA_PY=34
export CONDA_PY=35
set +x
conda build /recipe_root --quiet || exit 1
upload_or_check_non_existence /recipe_root conda-forge --channel=main || exit 1
set -x
export CONDA_PY=35
export CONDA_PY=36
set +x
conda build /recipe_root --quiet || exit 1
upload_or_check_non_existence /recipe_root conda-forge --channel=main || exit 1
touch /feedstock_root/build_artefacts/conda-forge-build-done
EOF

# double-check that the build got to the end
# see https://github.com/conda-forge/conda-smithy/pull/337
# for a possible fix
set -x
test -f "$FEEDSTOCK_ROOT/build_artefacts/conda-forge-build-done" || exit 1
1 change: 1 addition & 0 deletions circle.yml
@@ -1,5 +1,6 @@
checkout:
post:
- ./ci_support/fast_finish_ci_pr_build.sh
- ./ci_support/checkout_merge_commit.sh

machine:
Expand Down

0 comments on commit d594acd

Please sign in to comment.