diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-06-02 10:33:45 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-06-04 08:53:23 +0300 |
commit | 2c0cb550cd6fa2c0bacec83a765aa286fd4ee87a (patch) | |
tree | 869439bcbd2f46283dbe1a6a5bf689ba5226cc99 /subplot/jt.py | |
parent | 96c269190104ce3be4ecb071352d129ace9ea93a (diff) | |
download | jt2-2c0cb550cd6fa2c0bacec83a765aa286fd4ee87a.tar.gz |
build: add rudimentary .gitlab-ci.yml file to test GitLab CI
This uses the Rust Docker image from Docker Hub, and installs Subplot
and other tools into that, before it runs jt's ./check script.
Installing all the tools takes a fair bit of time, as does building jt
every time. These could and should be improved later.
Sponsored-by: author
Diffstat (limited to 'subplot/jt.py')
-rw-r--r-- | subplot/jt.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/subplot/jt.py b/subplot/jt.py index 0117736..5441ac3 100644 --- a/subplot/jt.py +++ b/subplot/jt.py @@ -4,11 +4,21 @@ import os def install_jt(ctx): runcmd_prepend_to_path = globals()["runcmd_prepend_to_path"] + runcmd_run = globals()["runcmd_run"] + runcmd_exit_code_is_zero = globals()["runcmd_exit_code_is_zero"] srcdir = globals()["srcdir"] bindir = os.path.join(srcdir, "target", "debug") runcmd_prepend_to_path(ctx, bindir) + # Configure git. + + runcmd_run(ctx, ["git", "config", "--global", "user.name", "J. Random Hacker"]) + runcmd_exit_code_is_zero(ctx) + + runcmd_run(ctx, ["git", "config", "--global", "user.email", "subplot@example.com"]) + runcmd_exit_code_is_zero(ctx) + def create_script(ctx, filename=None): get_file = globals()["get_file"] |