Wykres commitów

408 Commity (docs-dev)

Autor SHA1 Wiadomość Data
Scott Henderson 5ea4c29b83 bump conda minor version to 4.7.10 and refreeze 2019-07-29 17:30:50 +00:00
Tim Head e24e5d91ca Add test for R buildpack's get_preassemble_script_files 2019-07-23 18:23:30 +02:00
Min RK 009d09815a test local pip requirements 2019-07-18 14:40:17 +02:00
David R. Pugh 399b339a4a [WIP] Version bump Conda from 4.6.14 to 4.7.5 (#719)
Version bump conda to 4.7.5

Co-authored-by: pughdr <david.pugh@kaust.edu.sa>
2019-07-12 18:50:11 +02:00
Min RK bbe2b961ad bump xeus-cling in tests
so we don't have an old env relying on the free channel
2019-07-09 16:12:22 +02:00
Tim Head b5a506e0b7 Switch to binder-examples/requirements for our tests 2019-07-06 15:30:21 +02:00
Kacper Kowalik (Xarthisius) f80fb4b39b
Handle root user case more gracefully. Fixes #696
If user_id is root, exit only from cmdline. Raise exception if r2d was
invoked as a library.
2019-06-28 11:46:01 -05:00
Kacper Kowalik (Xarthisius) 24234d9365
Allow absolute paths in build_script_files. Fixes #673 2019-06-28 08:44:11 -05:00
Tim Head 6e93cb06a4
Merge pull request #649 from consideRatio/pipenv-support
[MRG/REVIEW] Support Pipfile / Pipfile.lock with pipenv
2019-06-26 07:26:35 +02:00
Erik Sundell 0ff737df1b
Fix typo
Co-Authored-By: Tim Head <betatim@gmail.com>
2019-06-25 09:17:30 +02:00
Erik Sundell efff66b81b
Fix typo
Co-Authored-By: Tim Head <betatim@gmail.com>
2019-06-25 09:17:04 +02:00
Erik Sundell e5160e4b3f Autoformatting 2019-06-23 06:38:31 +02:00
Erik Sundell 578fca9273 Add test for using py2 with pipfile 2019-06-23 05:45:25 +02:00
Tim Head 70819410f1
[MRG] Generalize Zenodo content provider to support other Invenio repositories (#704)
[MRG] Generalize Zenodo content provider to support other Invenio repositories
2019-06-21 09:48:52 +02:00
Tom Morrell 93147888c5 Reformatting and better tests 2019-06-20 13:22:17 -07:00
Tom Morrell 6d785404fb Typo 2019-06-19 08:38:24 -07:00
Tom Morrell 55b19b8369 Typo 2019-06-18 15:30:37 -07:00
Tom Morrell 87f33e3b6a Full generalization and support for CaltechDATA 2019-06-18 15:11:06 -07:00
Erik Sundell c30337097e Autoformatting applied 2019-06-18 00:38:06 +02:00
Min RK 9463b3bf8c verify lfs files 2019-06-13 13:53:18 +02:00
Erik Sundell 6de7a8c97a Black formatting applied 2019-06-04 09:14:32 +02:00
Erik Sundell e58b5c316e Merge remote-tracking branch 'upstream/master' into pipenv-support 2019-06-04 08:53:56 +02:00
Tim Head 8b004e06dc Apply auto formatting
Apologies to anyone finding this commit via git blame or log

run the autoformatting by

    pre-commit run --all-files
2019-06-03 21:37:25 +02:00
Tim Head 71a78986c2 Add external test for Zennodo provider 2019-05-30 08:33:12 +02:00
Tim Head 363c962efd Add a urlopen helper to Zenodo content provider
Use a helper function to inject a default user-agent header into every
request we make.
2019-05-29 22:27:09 +02:00
Tim Head 8fe9c71826 Mock urlopen calls during Zenodo tests 2019-05-29 22:27:09 +02:00
Tim Head ec8659e62f Add tests for Zenodo content provider 2019-05-29 22:27:09 +02:00
Yuvi Panda c7658dbc45
Merge pull request #695 from betatim/update-nodejs-test
[MRG] Update verification of Node install
2019-05-29 12:12:25 -07:00
Tim Head 60004a29de Update verification of Node install
Instead of checking the minor version as well only check the major
version of npm
2019-05-29 10:21:03 +02:00
Min RK 9bf2e13832 test `conda install` in the default env in postBuild 2019-05-24 11:04:47 +02:00
Tim Head 02e0de8717 Add test that default username is picked 2019-05-23 09:45:28 +02:00
Erik Sundell 5367f80541 Test Pipfile in binder-dir with Setup.py 2019-05-12 17:45:17 +02:00
Erik Sundell 2b0aa99d84 Merge remote-tracking branch 'upstream/master' into pipenv-support 2019-05-12 15:44:10 +02:00
Erik Sundell 10e9bb9bf6 extract pipfile: move tests 2019-05-12 15:08:40 +02:00
Kacper Kowalik (Xarthisius) caef6686d1
Do not try to build the image with root as the primary user
Fixes #267 and #395
2019-05-09 13:06:02 -05:00
Tim Head e66f0af23c
Revert "[MRG] Do not try to build the image with root as the primary user." 2019-05-09 13:14:32 +02:00
Kacper Kowalik (Xarthisius) 7d948bda8d
Do not try to build the image with root as the primary user
Fixes #267 and #395
2019-05-08 14:55:43 -05:00
Tim Head 032baf6d04 Add check to `build()` for memory limit type 2019-05-08 14:23:43 +02:00
Tim Head 9f44075839 Fix cache-from tests to pass memory limit as integer 2019-05-08 13:20:10 +02:00
Tim Head 5adc4b257e Update base image used for memory limit checks 2019-05-07 19:12:34 +02:00
Tim Head 92d69010c7
Merge pull request #652 from betatim/fix-memory-limit
[MRG] Fix handling of memory limit command line argument
2019-04-30 21:34:52 +02:00
yuvipanda c0a33b340b Add test for integral --build-memory-limit 2019-04-30 10:46:09 -07:00
Tim Head 5e67e3c743
Support .binder directory (#653)
Support .binder directory
2019-04-30 18:29:38 +02:00
Joseph Hamman 6de4c5ea6b add unit tests for binder dir 2019-04-30 08:35:58 -07:00
Tim Head e2c7de8d19 Update Julia tests for new conda env path 2019-04-30 08:43:19 +02:00
Min RK 2acf0974c3 miniconda is 4.6.14 2019-04-26 16:25:41 +02:00
Min RK 186e1bbc5d repo-path verifies conda prefix 2019-04-26 16:15:40 +02:00
Min RK 51f15ee7bd update some tests with new expectations
- conda is not importable in the frontmost python
- sys.executable is in $NB_PYTHON_PREFIX (this was true before, but it's value has changed)
2019-04-25 16:51:05 +02:00
Min RK 5f285b74e8 verify conda activation (and thereby entrypoint)
in tests/conda/simple

use pytest for better error reporting
2019-04-25 16:11:23 +02:00
Erik Sundell b80aba447c Add Pipfile + binder-folder tests 2019-04-21 23:45:27 +02:00
Erik Sundell 4bde9f05c3 Add Pipfile.lock to py36 test 2019-04-21 23:26:21 +02:00
Erik Sundell 330ac775d3 Add Pipfile + runtime.txt test 2019-04-21 21:46:52 +02:00
Erik Sundell 97c26641c3 Optimize Pipfile + environment.yml test
Why install a big package when we can install a trivial one?
2019-04-21 17:34:29 +02:00
Erik Sundell e107360d97 Improve Pipfile + requirements.txt test
Previously we did not check that requirements.txt was ignored properly,
now we do.
2019-04-21 17:33:44 +02:00
Erik Sundell d019f4980a Clarify Pipfile + Pipfile.lock test 2019-04-21 17:32:46 +02:00
Erik Sundell a59e169e2f Fix the Pipfile + setup.py tests
Apparently testing to import the package will work no matter what as we
will find it locally so setup.py may not need to run. By adding a small
dependency I could check if the dependency is installed and now the
tests actually tests what they should.
2019-04-21 17:30:36 +02:00
Erik Sundell d9e58c2634 Fix test description 2019-04-21 14:59:38 +02:00
Erik Sundell d8cfc50c50 Add test for Pipfile + Pipfile.lock
We want to use the more specific version, Pipfile.lock, if it is
available. Are we ignoring the Pipfile if it is, as we should?
2019-04-21 14:55:00 +02:00
Erik Sundell dff18e840d Add test for Pipfile + setup.py
We want to ignore the setup.py file if it is around along with a
Pipfile.
2019-04-21 14:53:05 +02:00
Erik Sundell 4b74a13364 Rethink setup.py with Pipfile
As setup.py can be explicitly installed or not from a Pipfile I reasoned
that it should not be installed by default after pipenv has used
relevant Pipfiles.
2019-04-21 14:51:11 +02:00
Erik Sundell 4c69bf1dfd Add tests for Pipenv 2019-04-21 01:06:37 +02:00
David Hoese ec6973c5fd
Fix git submodule test sha comparison 2019-04-08 08:26:44 -05:00
David Hoese 4bd1d23469
Add tests for git submodule handling 2019-04-08 08:09:23 -05:00
Tim Head 053a623f13
Merge pull request #612 from davidanthoff/change-julia-env-handling
Use JULIA_PROJECT env variable to activate julia env
2019-03-29 07:58:01 +01:00
Tim Head 649225166a Update test of editable flag
For some reason the notebook server doesn't exit when we send the
SIGTERM signal to the container and as a result waiting for the
container to shutdown leads to an exit code of 137 (the notebook server
gets kill by SIGKILL).
2019-03-23 22:07:36 +01:00
David Anthoff 7105a8a3ef Merge branch 'master' into change-julia-env-handling 2019-03-21 12:49:17 -07:00
David Anthoff 5c627cde78 Remove IJulia kernel location tests from julia legacy 2019-03-13 17:41:10 -07:00
David Anthoff 8f29686fb6 Add tests for IJulia kernel location 2019-03-13 09:14:05 -07:00
Tim Head da9fed483d Add a lot of tests for the Julia semver matcher 2019-03-08 08:12:36 +01:00
David Anthoff ab0221e457 Use JULIA_PROJECT env variable to activate julia env 2019-03-06 10:35:16 -08:00
Tim Head f718f9c51d
Fix version typo 2019-03-06 12:02:04 +01:00
David Anthoff 0bbfb7c57d Use proper version specifier in julia Project.toml test 2019-03-05 20:51:16 -08:00
David Anthoff 606bc4cb1e Update julia README files 2019-03-05 19:50:52 -08:00
David Anthoff 92e4121d67 Set file execution bit on julia tests 2019-03-05 08:42:08 -08:00
David Anthoff 02c531dc50 Update julia tests 2019-03-05 08:40:40 -08:00
David Anthoff 3ba4c5766b Merge branch 'master' into reorg-julia 2019-03-04 21:31:12 -08:00
yuvipanda e0fcd4a55d Add test for environment.yml + --target-repo-dir
conda sometimes puts stuff in $HOME - specifically under .conda/ -
that might cause package installs to fail due to permission mismatches.

Ref https://github.com/jupyter/repo2docker/issues/604
2019-03-04 22:11:24 +05:30
David Anthoff d09634cd74 Fix julia test 2019-03-01 22:12:29 -08:00
David Anthoff 7d7f238be1 Fix julia test 2019-02-27 21:06:42 -08:00
David Anthoff 77fd0dbf29 Fix julia test 2019-02-27 20:48:59 -08:00
David Anthoff 9c2b66d7b0 Enable a julia test again 2019-02-26 08:50:16 -08:00
David Anthoff dc661f292d Test a bugfix 2019-02-25 19:23:21 -08:00
David Anthoff 671836e1da Rename julia tests 2019-02-25 15:55:26 -08:00
Min RK 41a9375984
Merge pull request #592 from betatim/freeze-tests
[MRG] Add tests for setting Python version during freeze
2019-02-25 10:56:22 +01:00
Tim Head b581060ebf
Fix typo in julia test README
Co-Authored-By: davidanthoff <anthoff@berkeley.edu>
2019-02-24 09:07:06 -08:00
David Anthoff a0801ac86f Update julia test file permissions 2019-02-24 09:06:13 -08:00
David Anthoff 892d93c5f4 Update tests for more julia versions 2019-02-23 18:02:14 -08:00
Tim Head ffed59a56d Add tests for setting Python version during freeze 2019-02-23 15:03:44 +01:00
Tim Head 397695bbaa
Merge pull request #539 from yuvipanda/v3.7
Bump default python version to 3.7
2019-02-21 11:06:03 +01:00
Gladys Nalvarte 7609e7f0aa Update build method in docker and legacy files 2019-02-19 10:45:48 +01:00
Gladys Nalvarte 5bf2eadcf8 Exposes CPU limit 2019-02-15 14:57:58 +01:00
yuvipanda 6d14754c35 Bump tag used to test requirements example 2019-02-12 20:49:26 -08:00
yuvipanda d8f8c781b2 Bump python default version to 3.7 2019-02-11 12:49:58 -08:00
Tim Head 9766c95455
Merge pull request #576 from minrk/pin-conda-more
pin conda during Python-switch step
2019-02-10 12:28:25 +01:00
Tim Head 89027c68c7
Update checked conda version 2019-02-10 11:01:05 +01:00
Tim Head e218a329f5
Merge pull request #573 from GladysNalvarte/nodejs_inst
npm installation
2019-02-08 18:20:26 +01:00
Min RK 7ade437de4 add a verification that conda version is correct
this isn't linked to the version in the file, so will need to be updated in sync
2019-02-08 12:46:53 +01:00
Gladys Nalvarte 8c6329de61 npm installation 2019-02-07 15:36:00 +01:00
Min RK a69145fcdd missing quotes in GIT_CREDENTIAL_ENV
echo without quotes removes newline, echo with quotes preserves it.

Previously failing test added
2019-01-31 10:48:18 +01:00
yuvipanda da267be7ac Remove redundant Julia test
This is the equivalent to the pyplot-requirements test,
so just do one rather than 2.
2019-01-18 00:20:07 -08:00
yuvipanda a3b7e95594 Support requirements.txt & runtime.txt with Julia
The comment about Julia only working with CondaBuildPack
hasn't been true since we switched to using conda for getting
our pythons. This change allows people to use requirements.txt
with Julia, rather than forcing them to use environment.yaml
2019-01-17 17:23:54 -08:00
Tim Head 5385b71275
Merge pull request #555 from yuvipanda/julia-packages
Set JULIA_DEPOT_PATH
2019-01-17 10:29:53 +01:00
yuvipanda 3c9f31edc3 Add test for JULIA_DEPOT_PATHt 2019-01-16 22:42:36 -08:00
Yuvi Panda 9eb78c34ab
Merge pull request #534 from betatim/test-test-test
[MRG] Add tests for port mapping conversion
2018-12-22 10:46:16 -08:00
Yuvi Panda 18e9d2f817
Merge pull request #511 from betatim/cached-builds-take2
[MRG] Add caching of already built repositories
2018-12-21 22:19:28 -08:00
Tim Head 27a05d455e Use a minimal hand-crafted Dockerfile for speed
Instead of installing the normal stack just install the notebook server
and launch it to check for the launch URL being output correctly.
2018-12-21 19:55:49 +01:00
Tim Head 9e6dc8f7d7 Update tests and add invalid port spec tests 2018-12-21 17:59:42 +01:00
Tim Head 7067663763 Add tests for port mapping conversion 2018-12-21 15:58:56 +01:00
Tim Head e7018d7ca5 Add caching of already built repositories
Add tests for image caching

Adjust tests and main app for cached builds

Remove obsolete command-line handling

Remove print statement from test

Fix subdirectory handling

Put back exception instead of sys.exit()
2018-12-21 11:20:51 +01:00
yuvipanda 29407aa83f Put ${REPO_PATH}/.local/bin in PATH too 2018-12-18 11:50:35 -08:00
yuvipanda 21154d3b86 Use REPO_DIR rather than REPO_PATH
https://github.com/jupyter/repo2docker/pull/507#issuecomment-448184651
is a good justification
2018-12-18 11:50:35 -08:00
yuvipanda 66f025720e Add simple python test for --repo-path
extra-args.yaml placed in a test directory can be used
to pass extra arguments to the repo2docker command.
2018-12-18 11:50:24 -08:00
James Bourbeau 4f72fd8c94 Remove f-string in test 2018-12-18 09:29:28 -06:00
Min RK aca4259534 update port tests
use repo2docker directly, not as a subprocess
2018-12-17 14:23:02 +01:00
Min RK 22de9f40d0 get unittests passing again
fix some relative paths, temporary dirs, etc.
2018-12-17 13:11:45 +01:00
Min RK a5d5e77ad1 move unittests into tests/unit directory
for easier test discovery so we don't skip tests without realizing
2018-12-17 13:06:28 +01:00
yuvipanda 3a85fb814b Use pytest's capsys to test for stdout values
Works better with pytest's output capturing system
2018-12-14 13:30:22 -08:00
yuvipanda 0a1d9e3d5f Add test for valid & invalid docker image names 2018-12-14 13:15:33 -08:00
yuvipanda 183d504515 Add test for cleanup_checkout 2018-12-14 13:15:33 -08:00
yuvipanda a44aed7664 Add some argument parsing tests
And fix the one bug discovered in this process
2018-12-14 13:15:33 -08:00
yuvipanda 769efb8a69 Add test for proper failure when ref isn't found in git repo 2018-12-14 13:15:33 -08:00
yuvipanda e1ead75302 Move argument parsing out of Repo2Docker class
Argument parsing should only be used when calling from
the command line, and not be deeply tied into the class
itself. This makes it easier for folks to just set
traitlets on an empty class and start it, without having to
deal with passing arguments.

This breaks how people might already be using Repo2Docker as
a library, so should not be part of 0.7
2018-12-14 13:15:33 -08:00
James Bourbeau db00d4982c Use "local" label for local directory 2018-12-13 17:12:09 -06:00
James Bourbeau 2448730b75 Refactor test to use mock 2018-12-13 16:40:39 -06:00
James Bourbeau a55a3f6d30 Add test for BuildPack label rendering 2018-12-13 13:34:57 -06:00
James Bourbeau 99b1e7548a Update test_labels.py 2018-12-13 12:43:45 -06:00
James Bourbeau 5ff24d960b Add test_labels 2018-12-12 22:05:35 -06:00
Tim Head 69cd760e07
Merge pull request #494 from yuvipanda/util-tests
Add unit tests for repo2docker/utils.py
2018-12-11 13:05:08 +01:00
yuvipanda bf8836243c Add test for ByteSpecification validation 2018-12-10 23:19:13 -08:00
yuvipanda b441176a6a Add test for utils.chdir 2018-12-10 23:13:56 -08:00
yuvipanda 30e69bccee Add unit test for execute_cmd in repo2docker.utils 2018-12-10 23:06:25 -08:00
yuvipanda d035483d1c Add tests for Docker & Legacy Docker buildpacks 2018-12-10 22:46:06 -08:00
yuvipanda 47335f44c7 Add tests for cache_from functionality 2018-12-10 11:25:47 -08:00
Yuvi Panda c489f54a05
Merge pull request #448 from betatim/nix-experiment
[MRG] Switch to BaseImage for nix build pack
2018-11-12 13:56:30 -08:00
Tim Head 58cbe1797d
Merge pull request #457 from nuest/stencila
Updates for Stencila
2018-11-09 13:56:23 +01:00
Tim Head a8aee884e9 Add executable flag to verify script 2018-11-09 11:14:30 +01:00
Tim Head 28a11ab3de Fix comment typos 2018-11-09 08:20:24 +01:00
Tim Head fcab15b092 Add a test for nix using a binder subidrectory 2018-11-09 08:12:56 +01:00
Tim Head d427fdfd52 Add test and support for binder sub-directory 2018-11-09 08:12:53 +01:00
Tim Head 046b744785 Inherit from BaseImage instead of BuildPack 2018-11-09 08:12:33 +01:00
nuest 490962e08d split up Stencila tests to not run into timeouts on Travis CI 2018-11-06 21:27:18 +01:00
nuest c2b17d599e add tests pyjp vs. py for Stencila, make Stencila tests more specific 2018-11-05 21:10:13 +01:00
nuest 7e8450fcee more detailed check for Stencila + Python test 2018-10-30 10:33:21 +01:00
nuest 24def164ed verify R installation for r-markdown with Stencila 2018-10-29 20:52:05 +01:00
Chris Ostrouchov 1e3630cc10
Feature: Adding nix support for repo2docker
test url: https://gitlab.com/costrouc/nix-binder-example
2018-10-17 16:32:40 -04:00
Tim Head b1dcbbe996 Adjust sub-directory tests after changing CWD behaviour 2018-10-16 13:46:00 +02:00
Tim Head df7251dff6 Add context manager to change working dir
The context manager takes care of restoring the current working
directory when we are done. This is useful when the directory we set as
working directory stops existing.
2018-10-16 13:29:59 +02:00
Tim Head 4e1eff5f1b Switch repository used to test sub-directory support
Using a repository that contains invlid instructions in the root of the
repository so that the test for subdirectory support will fail if
repo2docker doesn't actually switch into the requested sub-directory.
2018-10-16 13:28:08 +02:00
Tim Head 71903721d9 Add tests for local content provider 2018-10-16 08:04:13 +02:00
Tim Head 02b41948dd Add tests for Git content provider 2018-10-16 08:04:13 +02:00