Skip to content

Commit

Permalink
Mybinder: update postBuild (#689)
Browse files Browse the repository at this point in the history
* Update postBuild

* Update postBuild

* Update .travis.yml

* Update .travis.yml
  • Loading branch information
jan-janssen committed May 25, 2020
1 parent 1c3a209 commit 3b4a231
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 36 deletions.
29 changes: 1 addition & 28 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ matrix:
script:
- coverage run -m unittest discover tests
- coverage combine
# - ./.ci_support/build_notebooks_on_master.sh
after_success:
- coveralls
- coverage xml
Expand Down Expand Up @@ -43,11 +42,7 @@ matrix:
- ./.ci_support/setup_pyiron.sh ${PYTHONVER}
- conda install -c conda-forge jupyter papermill nglview sphinxdft=2.6.1=h6ced99e_5 gpaw lammps seaborn
- printf "[DEFAULT]\nTOP_LEVEL_DIRS = ${HOME}\nRESOURCE_PATHS =${HOME}/resources" > ${HOME}/.pyiron
- git clone https://github.com/pyiron/pyiron-resources.git ${HOME}/resources
- mkdir -p ${HOME}/resources/gpaw
- wget https://wiki.fysik.dtu.dk/gpaw-files/gpaw-setups-0.9.20000.tar.gz
- tar -xf gpaw-setups-0.9.20000.tar.gz
- mv gpaw-setups-0.9.20000 ${HOME}/resources/gpaw/potentials
- git clone --recurse-submodules https://github.com/pyiron/pyiron-resources.git ${HOME}/resources
- for f in $(cat .ci_support/exclude); do rm notebooks/$f; done; # Remove VASP based notebooks
script:
- jupyter kernelspec list
Expand All @@ -66,7 +61,6 @@ matrix:
script:
- coverage run -m unittest discover tests
- coverage combine
# - ./.ci_support/build_notebooks_on_master.sh

- stage: documentation
if: branch = master
Expand Down Expand Up @@ -100,27 +94,6 @@ matrix:
- echo -e "from urllib.request import urlopen\nurlopen('https://pyiron.github.io')" > test.py
- python test.py

# - stage: anaconda
# if: branch = master
# name: anaconda
# os: linux
# language: python
# env: MINICONDA="https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh" PYTHONVER="3.7"
# install:
# - export PATH="$HOME/miniconda/bin:$PATH"
# - ./.ci_support/setup_miniconda.sh ${MINICONDA} ${PYTHONVER}
# script:
# - ./.ci_support/setup_upload.sh
# deploy:
# - provider: script
# script: conda build --python ${PYTHONVER} --user pyiron --token ${CONDA_UPLOAD_TOKEN} conda/pyiron
# on:
# branch: master
# - provider: script
# script: conda build --python ${PYTHONVER} --user pyiron --token ${CONDA_UPLOAD_TOKEN} conda/pyiron
# on:
# tags: true

- stage: docker
if: branch = master
name: docker
Expand Down
9 changes: 1 addition & 8 deletions binder/postBuild
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,9 @@ jupyter labextension install nglview-js-widgets

# pyiron setup
printf "[DEFAULT]\nTOP_LEVEL_DIRS = ${HOME}\nRESOURCE_PATHS = ${HOME}/resources" > ${HOME}/.pyiron
git clone https://github.com/pyiron/pyiron-resources.git ${HOME}/resources
git clone --recurse-submodules https://github.com/pyiron/pyiron-resources.git ${HOME}/resources
rm -rf ${HOME}/resources/vasp

# gpaw setup
mkdir -p ${HOME}/resources/gpaw
wget https://wiki.fysik.dtu.dk/gpaw-files/gpaw-setups-0.9.20000.tar.gz
tar -xf gpaw-setups-0.9.20000.tar.gz
mv gpaw-setups-0.9.20000 ${HOME}/resources/gpaw/potentials
rm gpaw-setups-0.9.20000.tar.gz

# clean up
if [ -d "notebooks" ]; then
mv notebooks/* .
Expand Down

0 comments on commit 3b4a231

Please sign in to comment.