Skip to content

Commit 9b3f008

Browse files
committed
Remove with-runtimes script
Platform-specific logic is encoded into `runtime::strategy`.
1 parent 97da83e commit 9b3f008

File tree

3 files changed

+11
-55
lines changed

3 files changed

+11
-55
lines changed

.vscode/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@
1818
"initdb",
1919
"logfile",
2020
"Nonblock",
21+
"pbcopy",
2122
"PGDATA",
2223
"PGDATABASE",
24+
"pgdg",
2325
"PGHOST",
2426
"pidfile",
2527
"POSIX",
@@ -28,7 +30,9 @@
2830
"runtimes",
2931
"rustfmt",
3032
"rustup",
33+
"shellsession",
3134
"SIGINT",
35+
"struct",
3236
"synchronisation",
3337
"tempdir"
3438
],

README.md

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,10 @@ tests will look for all PostgreSQL runtimes on `PATH` and run tests for all of
118118
them.
119119

120120
First you must install multiple versions of PostgreSQL on your machine. Read on
121-
for platform-specific notes. Once you've installed the versions you want, the
122-
[`with-runtimes`](with-runtimes) script may be able to automatically find them
123-
and add them to `PATH`:
124-
125-
```shellsession
126-
$ ./with-runtimes cargo test
127-
```
121+
for platform-specific notes. Once you've installed the versions you want,
122+
[`postgresfixture::runtime::strategy::default()`] may be able to automatically
123+
find them – and, since this function is used by tests, those runtimes will
124+
automatically be tested.
128125

129126
#### Debian & Ubuntu
130127

@@ -151,12 +148,11 @@ $ brew install postgresql@{9.{4,5,6},10,11,12,13} # Adjust as necessary.
151148
2. Paste updated `--help` output into [`README.md`](README.md) (this file; see
152149
near the top). On macOS the command `cargo run -- --help | pbcopy` is
153150
helpful.
154-
3. Build **and** test: `cargo build && ./with-runtimes cargo test`. The latter
155-
on its own does do a build, but a test build can hide warnings about dead
156-
code, so do both.
151+
3. Build **and** test: `cargo build && cargo test`. The latter on its own does
152+
do a build, but a test build can hide warnings about dead code, so do both.
157153
4. Commit with message "Bump version to `$VERSION`."
158154
5. Tag with "v`$VERSION`", e.g. `git tag v1.0.10`.
159-
6. Push: `git push --tags`.
155+
6. Push: `git push && git push --tags`.
160156
7. Publish: `cargo publish`.
161157

162158
## License

with-runtimes

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)