diff options
| author | Arthur LAURENT <[email protected]> | 2024-02-03 16:39:33 +0100 |
|---|---|---|
| committer | Arthur LAURENT <[email protected]> | 2024-02-03 16:39:33 +0100 |
| commit | b40cc4227ce6d4c491d592b361843a42232cd33d (patch) | |
| tree | 0fb44b6a7d0222fefba47893f6eb759112a45eb7 /tests/projects/c++/modules/test_base.lua | |
| parent | 07c0af96d81dcaa2c4ab5b5a9450367a70758c2d (diff) | |
improve tests
Diffstat (limited to 'tests/projects/c++/modules/test_base.lua')
| -rw-r--r-- | tests/projects/c++/modules/test_base.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/projects/c++/modules/test_base.lua b/tests/projects/c++/modules/test_base.lua index c4252d41c..e6f46764a 100644 --- a/tests/projects/c++/modules/test_base.lua +++ b/tests/projects/c++/modules/test_base.lua @@ -1,9 +1,9 @@ import("lib.detect.find_tool") import("core.base.semver") +import("utils.ci.is_running", {alias = "ci_is_running"}) function _build() - local ci = (os.getenv("CI") or os.getenv("GITHUB_ACTIONS") or ""):lower() - if ci == "true" then + if ci_is_running() then os.exec("xmake -rvD") else os.exec("xmake -r") |
