mirror of
https://github.com/tj/n.git
synced 2024-11-24 19:46:56 +01:00
Update mount points and /mnt paths for new bats and relative paths
This commit is contained in:
parent
7d197ad7a6
commit
4616e56b0a
@ -36,7 +36,7 @@ https_proxy="$(hostname):8080"
|
||||
export https_proxy
|
||||
|
||||
# linux. Use wget first so cache uncompressed index.tab and works with both wget and curl.
|
||||
docker-compose run ubuntu-wget /mnt/tests/install-reference-versions.bash
|
||||
docker-compose run ubuntu-wget /mnt/test/tests/install-reference-versions.bash
|
||||
# native
|
||||
tests/install-reference-versions.bash
|
||||
|
||||
|
@ -9,7 +9,7 @@ services:
|
||||
- ../node_modules/bats/lib/bats-core:/usr/local/lib/bats-core
|
||||
- ../node_modules/bats/man/bats.1:/usr/local/share/man/man1"
|
||||
- ../node_modules/bats/man/bats.7:/usr/local/share/man/man7"
|
||||
# the bats tests
|
||||
# the bats tests, same relative location to node_modules as in repo
|
||||
- ./tests:/mnt/test/tests
|
||||
# bats extra libraries, into similar relative location
|
||||
- ../node_modules/bats-support:/mnt/node_modules/bats-support
|
||||
|
@ -20,13 +20,13 @@ Run all the tests on a single system:
|
||||
|
||||
cd test
|
||||
npx bats tests
|
||||
docker-compose run ubuntu-curl bats /mnt/tests
|
||||
docker-compose run ubuntu-curl bats /mnt/test/tests
|
||||
|
||||
Run single test on a single system::
|
||||
|
||||
cd test
|
||||
npx bats tests/install-contents.bats
|
||||
docker-compose run ubuntu-curl bats /mnt/tests/install-contents.bats
|
||||
docker-compose run ubuntu-curl bats /mnt/test/tests/install-contents.bats
|
||||
|
||||
## Proxy
|
||||
|
||||
@ -57,7 +57,7 @@ The containers each have:
|
||||
Using `docker-compose` to run the container adds:
|
||||
|
||||
* specified `n` script mounted to `/usr/local/bin/n`
|
||||
* `test/tests` mounted to `/mnt/tests`
|
||||
* `test/tests` mounted to `/mnt/test/tests`
|
||||
* `node_modules/bats` provides `/usr/local/bin/bats` et al
|
||||
* `.curlrc` with `--insecure` to allow use of proxy
|
||||
|
||||
@ -67,4 +67,4 @@ So for example:
|
||||
docker-compose run ubuntu-curl
|
||||
# in container
|
||||
n --version
|
||||
bats /mnt/tests
|
||||
bats /mnt/test/tests
|
||||
|
Loading…
Reference in New Issue
Block a user