1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-11-18 11:05:19 +00:00
Commit Graph

9 Commits

Author SHA1 Message Date
Hofer-Julian
c67734f46c fix: Turn off label confinement for integration_test script (#322)
Allows usage on OS using SELinux.
No influence on other OS is expected.
2019-09-08 16:46:12 -05:00
Matan Kushner
097f1b05f1
Add support for prompt configuration (#62)
- 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
2019-06-10 15:56:17 +01:00
Matan Kushner
8239fbd12b
Refactor integration tests (#71)
- Create subcommands to be able to print modules independently
	- `starship prompt` will print the full prompt
	- `starship module <MODULE_NAME>` will print a specific module
		e.g. `starship module python`
	- Added `--path` flag to print the prompt or modules without being in a specific directory
	- Added `--status` flag to provide the status of the last command, instead of requiring it as an argument
- Refactored integration tests to be end-to-end tests, since there was no way in integration tests to set the environment variables for a specific command, which was required for the `username` module
- Moved e2e tests to `tests/testsuite` to allow for a single binary to be built
	- Tests will build/run faster
	- No more false positives for unused functions
- Added tests for `username`
- Removed codecov + tarpaulin 😢
2019-06-06 13:18:00 +01:00
Matan Kushner
000abfe6df
Use tarpaulin and Codecov for adding code coverage to project (#68) 2019-05-29 22:58:46 +02:00
Matan Kushner
617b278a33
Use starship-test docker image for running integration tests (#70)
* Publish docker image used in testing
* Update integration_test to pull the image and build, using the image as its cache
* Publish the built image after successful test runs on master
2019-05-29 13:27:18 +02:00
John Letey
c95bb60571 Add integration tests for Python segment (#38) 2019-05-13 21:53:26 -06:00
Matan Kushner
0872d524ca
Add docker for integration tests (#37) 2019-04-28 13:34:46 -04:00
Matan Kushner
5980a0a845
Revert "Add docker for integration tests" (#36)
This reverts commit 67d938c3de.
2019-04-28 13:08:49 -04:00
Matan Kushner
67d938c3de
Add docker for integration tests (#26) 2019-04-28 12:38:55 -04:00