Skip to content

Commit

Permalink
gtri#3: add binder stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
nrbgt committed Mar 21, 2019
1 parent 865311e commit 18250d6
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
15 changes: 15 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: default

channels:
- conda-forge
- defaults

dependencies:
- python >=3.6,<3.7
- importnb >=0.5.2
- ipykernel >=5.1
- ipython >=7.2
- jupyterlab >=0.35.4,<0.36
- nodejs >=8.12,<9
- pillow
- robotframework >=3.1
18 changes: 18 additions & 0 deletions postBuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env bash
echo "CONDA_PREFIX is $CONDA_PREFIX"

if [ "${NB_UID}not-on-binder" = "not-on-binder" ]; then
echo "...and that's fine"
else
if [ "${CONDA_PREFIX}no-conda-prefix" = "no-conda-prefix" ]; then
echo "...and we set it to ${CONDA_DIR}"
export CONDA_PREFIX=$CONDA_DIR
else
echo "...and that's fine"
fi
fi

set -ex
python -m pip install -e . --ignore-installed --no-dependencies
jupyter kernelspec install --name robotframework --sys-prefix src/irobotframework/resources
jlpm bootstrap

0 comments on commit 18250d6

Please sign in to comment.