test binder-dir handling
ADD
tests/conda/binder-dir/.binder/environment.yml
+dependencies:
+ - numpy

ADD
tests/conda/binder-dir/Dockerfile
+FROM doesntmatter
+# this file should be ignored because there's a .binder dir
\ No newline at end of file

ADD
tests/conda/binder-dir/README.rst
+Binder Directory
+----------------
+
+top-level Dockerfile will be ignored if .binder/environment.yml exists.

ADD
tests/conda/binder-dir/environment.yml
+dependencies:
+ - thiswontwork
+ invalid

ADD
tests/conda/binder-dir/verify
+#!/usr/bin/env python
+import sys
+
+assert sys.version_info[:2] == (3, 6), sys.version
+
+import numpy

ADD
tests/dockerfile/binder-dir/.binder/Dockerfile
+FROM python:3.5
+
+ARG JUPYTERHUB_VERSION
+RUN pip3 install jupyterhub==$JUPYTERHUB_VERSION
+
+ENTRYPOINT "/bin/sh"
+
+ADD sayhi.sh /usr/local/bin/sayhi.sh
+ADD verify verify

ADD
tests/dockerfile/binder-dir/Dockerfile
+FROM python:3.5
+
+RUN exit 1

ADD
tests/dockerfile/binder-dir/README.rst
+Binder Directory
+----------------
+
+top-level Dockerfile will be ignored if .binder/Dockerfile exists.

ADD
tests/dockerfile/binder-dir/sayhi.sh
+#!/bin/bash
+echo hi
+exit 0

ADD
tests/dockerfile/binder-dir/verify
+#!/bin/sh
+set -e
+/usr/local/bin/sayhi.sh

ADD
tests/venv/binder-dir/.binder/postBuild
+#!/bin/bash
+jupyter nbextension enable --py --sys-prefix ipyleaflet

ADD
tests/venv/binder-dir/.binder/requirements.txt
+ipyleaflet

ADD
tests/venv/binder-dir/README.rst
+Binder Directory
+----------------
+
+top-level environment.yml will be ignored if .binder/requiremets.txt exists.

ADD
tests/venv/binder-dir/environment.yml
+dependencies:
+ - thiswontwork
+ invalid

ADD
tests/venv/binder-dir/verify
+#!/bin/bash
+test -z $(pip list | grep scipy)
+jupyter nbextension list
+jupyter nbextension list | grep 'jupyter-leaflet' | grep enabled

test binder-dir handling