mirror of
https://github.com/starship/starship.git
synced 2024-11-30 04:04:04 +01:00
097f1b05f1
- Create `Config` struct that is added to `Context` when initialized - Read `~/.confg/starship.toml` during initialization (can be updated later to also look at `$XDG_CONFIG_HOME`) - `Context` now has a method for creating modules. This allows us to provide modules with a reference to the configuration specific to that module
17 lines
479 B
Bash
Executable File
17 lines
479 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if ! (docker --version); then
|
|
printf 'Docker is required to run the starship integration tests.\n'
|
|
printf 'Please download and install Docker in order to run these tests locally.\n'
|
|
exit 1
|
|
fi
|
|
|
|
printf 'Building test docker image:\n'
|
|
docker build -f tests/Dockerfile \
|
|
--tag starshipcommand/starship-test \
|
|
--cache-from starshipcommand/starship-test \
|
|
.
|
|
|
|
printf 'Running test suite:\n'
|
|
docker run --rm -v $(pwd):/src/starship starshipcommand/starship-test
|