Skip to content

Commit 6612c7b

Browse files
refactor: remove install scripts
Use make/task instead
1 parent 33173c3 commit 6612c7b

4 files changed

Lines changed: 27 additions & 131 deletions

File tree

README.md

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ Sets up a new development environment for a Mac or Linux (i.e., UNIX) box.
1717
* [Makefile](#makefile)
1818
* [Taskfile](#taskfile)
1919
* [Devbox](#devbox)
20-
* [Bootstrap (wip)](#bootstrap-wip)
2120
* [TODO](#todo)
2221
* [Further Reading](#further-reading)
2322

@@ -57,6 +56,8 @@ task: Available tasks for this project:
5756
* export-reqs: Export requirements.txt
5857
* install: Install project dependencies
5958
* pre-commit: Run pre-commit hooks
59+
* run: Run the playbook
60+
* run-dev: Run the playbook with tags and debug
6061
* update-deps: Update dependencies
6162
* docker:build: Build the docker image
6263
* docker:down: Stop and remove containers, networks, and volumes with docker compose
@@ -89,24 +90,6 @@ devbox run start
8990
devbox run test
9091
```
9192

92-
### Bootstrap (wip)
93-
```bash
94-
# install tools and runtimes (cf. xcode, brew, asdf, poetry, etc.)
95-
./bootstrap <run|run-dev> # dev only runs plays w/tags and is verbose
96-
97-
# update pyproject.toml and poetry.lock
98-
./bootstrap bump-deps
99-
100-
# export requirements.txt
101-
./bootstrap export-reqs
102-
103-
# install git hooks
104-
./bootstrap install-precommit
105-
106-
# update git hooks
107-
./bootstrap update-precommit
108-
```
109-
11093
## TODO
11194
* [Open Issues](https://github.com/pythoninthegrass/mvp/issues)
11295
* QA [Ansible playbook](ansible/playbook.yml)

bin/install.sh

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

bootstrap

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

taskfile.yml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ tasks:
5353
desc: "Install project dependencies"
5454
cmds:
5555
- |
56-
{{.INSTALL}} {{.CLI_ARGS}}
56+
make install
5757
5858
pre-commit:
5959
desc: "Run pre-commit hooks"
@@ -70,6 +70,7 @@ tasks:
7070
cmds:
7171
- |
7272
poetry cache clear --all pypi --no-ansi
73+
poetry up 2>/dev/null
7374
poetry update --lock --no-ansi
7475
7576
export-reqs:
@@ -83,3 +84,26 @@ tasks:
8384
--without-hashes \
8485
--no-ansi
8586
ignore_error: true
87+
88+
run:
89+
desc: "Run the playbook"
90+
cmds:
91+
- |
92+
if [[ -z {{.ARGS}} ]]; then
93+
ansible-playbook \
94+
-i ./ansible/hosts \
95+
{{.ARGS}}
96+
else
97+
ansible-playbook \
98+
-i ./ansible/hosts \
99+
./ansible/playbook.yml
100+
fi
101+
102+
run-dev:
103+
desc: "Run the playbook with tags and debug"
104+
cmds:
105+
- |
106+
ansible-playbook \
107+
-i ./ansible/hosts \
108+
{{.ARGS}} \
109+
--tags test,qa -vvv

0 commit comments

Comments
 (0)