-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci Don't always re-install dependencies, which speeds up successive b…
…uilds (Sample size: 1) Now (some output ommitted): # Do a clean build rm -rf .tox; time tox tox 17.25s user 8.84s system 49% cpu 52.303 total # Do a successive build time tox tox 1.72s user 0.38s system 86% cpu 2.436 total Before (some output ommitted): # Do a clean build rm -rf .tox; time tox tox 19.69s user 11.41s system 46% cpu 1:06.32 total # Do a successive build time tox tox 3.57s user 3.64s system 24% cpu 29.537 total It can go _faster_, but that'd come at the cost of having tox managing our dependencies when they change, so I opted not to do that. Though, we should keep that in our back pocket if we get to that point.
- Loading branch information
Showing
2 changed files
with
30 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/sh | ||
set -eu | ||
|
||
if [ -f "$TOX_ENV_DIR/bin/node" ]; then | ||
echo Node and friends already installed. | ||
exit 0 | ||
fi | ||
|
||
nodeenv --prebuilt -p --node 18.20.4 "$TOX_ENV_DIR" | ||
npm install -g npm@latest | ||
npm ci |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters