-
Notifications
You must be signed in to change notification settings - Fork 362
Commit
ci: refactor julia/r/conda tests - now ~25 min instead of ~50 min
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# Overview of tests for the conda buildpack | ||
|
||
## Tested configuration files | ||
|
||
- [`.binder/`](https://repo2docker.readthedocs.io/en/latest/usage.html#where-to-put-configuration-files) | ||
- [`requirements.txt`](https://repo2docker.readthedocs.io/en/latest/config_files.html#requirements-txt-install-a-python-environment) | ||
- [`postBuild](https://repo2docker.readthedocs.io/en/latest/config_files.html#postbuild-run-code-after-installing-the-environment) | ||
|
||
## Tested repo2docker command line flags | ||
|
||
- [`--target-repo-dir`](https://repo2docker.readthedocs.io/en/latest/usage.html#cmdoption-jupyter-repo2docker-target-repo-dir) | ||
|
||
### py2 | ||
|
||
- Test setup of a Python 2 environment by declaring `python=2` in | ||
`environment.yml`. | ||
|
||
### py35-binder-dir | ||
|
||
- Test setup of a Python 3.5 environment by declaring `python=3.5` in | ||
`environment.yml`. | ||
|
||
The reasons for testing 3.5 specifically is that it is the oldest version of | ||
Python 3 supported by repo2docker's conda buildpack. See | ||
`repo2docker/buildpacks/conda` for details. | ||
|
||
- Test use of a `.binder` directory. | ||
|
||
### py310-requirements-file | ||
|
||
- Test setup of a Python 3.10 environment by declaring `python=3.10` in | ||
`environment.yml`. | ||
|
||
The reasons for testing 3.10 specifically is that it is the newest version of | ||
Python 3 supported by repo2docker's conda buildpack. See | ||
`repo2docker/buildpacks/conda` for details. | ||
|
||
- Test use of a `requirements.txt` file, where an `environment.yml` file should | ||
take precedence and the `requirements.txt` should be ignored. | ||
|
||
### py-r-postbuild-file | ||
|
||
- Test setup of the default Python environment by omitting `python` from | ||
`environment.yml` file. | ||
|
||
- Test setup of the default R environment by specifying `r-base` in | ||
`environment.yml`. | ||
|
||
- Test use of a `postBuild` file. | ||
|
||
### r3.6-target-repo-dir-flag | ||
|
||
- Test setup of a R 3.6 environment by specifying `r-base=3.6` in | ||
`environment.yml`. | ||
|
||
- Test use of repo2docker with the `--target-repo-dir` flag. | ||
|
||
`--target-repo-dir` is meant to support custom paths where repositories can be | ||
copied to besides `${HOME}`. | ||
|
||
This test makes use of the `test-extra-args.yaml` file to influence additional | ||
arguments passed to `repo2docker` during the test. In this test, specify | ||
`--target-repo-dir=/srv/repo`. |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
dependencies: | ||
- numpy | ||
- pytest | ||
- r-base | ||
- r-digest |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/bash | ||
pip install there |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
dependencies: | ||
- python=3.10 | ||
- numpy | ||
- pip | ||
- pip: | ||
- simplejson |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# This file should be ignored because there's a dedicated binder folder | ||
FROM doesntmatter |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# This file should be ignored as we have a dedicated binder folder. | ||
dependencies: | ||
- thiswontwork | ||
invalid |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
dependencies: | ||
- r-base=3.6 | ||
- r-testthat | ||
- r-digest |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# This file is respected by repo2docker's test suite, but not repo2docker | ||
# itself. It is used solely to help us test repo2docker's command line flags. | ||
# | ||
- --target-repo-dir=/srv/repo |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Overview of tests for the julia buildpack | ||
|
||
## Tested configuration files | ||
|
||
- [`Project.toml`](https://repo2docker.readthedocs.io/en/latest/config_files.html#project-toml-install-a-julia-environment) | ||
- [`REQUIRE`](https://repo2docker.readthedocs.io/en/latest/config_files.html#require-install-a-julia-environment-legacy) | ||
- [`requirements.txt`](https://repo2docker.readthedocs.io/en/latest/config_files.html#requirements-txt-install-a-python-environment) | ||
|
||
## Test folders | ||
|
||
### project | ||
|
||
- Tests use of a `Project.toml` file for Julia, using the repo2docker default | ||
version of Julia as specified in `julia_project.py`. | ||
|
||
### project-1.0.2 | ||
|
||
- Tests use of a `Project.toml` file for Julia, using a version of Julia | ||
specified via `julia = "=1.0.2"` in `Project.toml`'s `[compat]` section. | ||
|
||
### require | ||
|
||
- Tests use of a `REQUIRE` file for Julia, using the repo2docker default version | ||
of Julia as specified in `julia_require.py`. Note that this is default version | ||
is currently 0.6.4! | ||
|
||
- Starting with Julia v0.7 and up, the package manager has changed, so this | ||
tests that the Julia version below that can be installed correctly as well. | ||
|
||
### require-1-requirements-file | ||
|
||
- Tests use of a `REQUIRE` file for Julia, using a major version version | ||
specification. Note that this major version specification is currently | ||
resolving to a pinned minor and patch version as declared in | ||
`julia_require.py`. | ||
|
||
- Test use of a `requirements.txt` file, where it is expected to be respected | ||
alongside the `REQUIRE` file. |