summaryrefslogtreecommitdiffstats
path: root/.devcontainer/postCreateCommand.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-11-19 14:52:46 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-11-19 14:52:46 +0000
commita2aa51f5702b18016c25d943499941323952704d (patch)
tree7ee43f79639ee53903e7ca389e548974e1497c3a /.devcontainer/postCreateCommand.sh
parentAdding upstream version 0.17.0. (diff)
downloadgitlint-a2aa51f5702b18016c25d943499941323952704d.tar.xz
gitlint-a2aa51f5702b18016c25d943499941323952704d.zip
Adding upstream version 0.18.0.upstream/0.18.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '.devcontainer/postCreateCommand.sh')
-rwxr-xr-x.devcontainer/postCreateCommand.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/.devcontainer/postCreateCommand.sh b/.devcontainer/postCreateCommand.sh
new file mode 100755
index 0000000..4bbaf05
--- /dev/null
+++ b/.devcontainer/postCreateCommand.sh
@@ -0,0 +1,23 @@
+#!/bin/sh -x
+
+brew install asdf
+source "$(brew --prefix asdf)/libexec/asdf.sh"
+
+# Install latest python
+asdf plugin add python
+asdf install python 3.11.0
+asdf global python 3.11.0
+
+# You can easily install other python versions like so:
+# asdf install python 3.6.15
+# asdf install python 3.7.15
+# asdf install python 3.8.15
+# asdf install python 3.9.15
+# asdf install python 3.10.8
+# asdf install python pypy3.9-7.3.9
+
+# Setup virtualenv, install all dependencies
+cd /workspaces/gitlint
+$(asdf which python) -m venv .venv
+source .venv/bin/activate
+pip install -r requirements.txt -r test-requirements.txt -r doc-requirements.txt \ No newline at end of file