Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ci-bot authored and dogdogdog committed May 30, 2023
1 parent 9e47f0d commit af14f1e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ci/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from pathlib import Path
from shutil import rmtree
from subprocess import check_call, check_output, run
from sys import executable
from typing import Iterator

_TOP_LV = Path(__file__).resolve(strict=True).parent.parent
Expand All @@ -25,7 +26,7 @@ def _git_clone(path: Path, repo_name: str) -> None:


def _build(cwd: Path) -> None:
check_call(("python3", "-m", "coq.ci"), cwd=cwd)
check_call((executable, "-m", "coq.ci"), cwd=cwd)


def _git_alert(cwd: Path) -> None:
Expand Down Expand Up @@ -57,7 +58,8 @@ def cont() -> Iterator[str]:

def main() -> None:
snips = _TOP_LV / ".vars" / "snippets"
_git_identity()
if "CI" in environ:
_git_identity()
_git_clone(snips, repo_name="coq.artifacts")
_build(_TOP_LV)
_git_alert(snips)

0 comments on commit af14f1e

Please sign in to comment.