Skip to content

Commit

Permalink
Merge pull request #29 from manics/binder
Browse files Browse the repository at this point in the history
Fix repo2docker/mybinder builds
  • Loading branch information
manics authored Mar 8, 2020
2 parents a3b214e + 348c3dd commit 4116f55
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
language: python

dist: bionic
python:
- "3.6"

install:
- pip install flake8 jupyterlab
- pip install flake8 jupyterlab~=1.2

script:
- pwd
- flake8 .
- python setup.py sdist
- python -mpip install dist/*.tar.gz
- jlpm
- jupyter labextension install
- jupyter labextension install --debug

deploy:
- provider: pypi
Expand Down
5 changes: 0 additions & 5 deletions binder/environment.yml

This file was deleted.

15 changes: 11 additions & 4 deletions binder/postBuild
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
#!/bin/bash
set -eux

env
env | sort
pwd
pip install .
jlpm
jupyter labextension install

# repo2docker copies this repo into $HOME which means jupyter labextension
# picks up hidden dot files and runs into problems so install from a
# different directory
SRCDIR=/srv/conda/src/jupyter-offlinenotebook
mkdir -p "$SRCDIR"
cp -a * "$SRCDIR"
cd "$SRCDIR"
python -m pip install .
jupyter labextension link --debug

0 comments on commit 4116f55

Please sign in to comment.