From 2dc0452e897b927d22054baa88fffcfa1e2d0f59 Mon Sep 17 00:00:00 2001 From: David Sancho Date: Wed, 9 Sep 2020 21:37:06 +0200 Subject: [PATCH] ci: Make q available on CI --- .github/workflows/release.yml | 5 +++++ e2e/test.sh | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1d2c663..f769c32 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -105,6 +105,11 @@ jobs: # name: windows-latest-artifact # path: _release/platform-windows-x64 + - name: Publish q from linux artifcats + run: | + cp _release/platform-linux-x64/q.exe ./q + chmod +x q + - name: Create archives for Github release run: | cd _release/platform-darwin-x64 diff --git a/e2e/test.sh b/e2e/test.sh index 45f8ba2..920a514 100755 --- a/e2e/test.sh +++ b/e2e/test.sh @@ -3,8 +3,7 @@ function q () { if [[ ! -z $IS_CI ]]; then echo "Running in CI mode" - chmod +x $BATS_TEST_DIRNAME/../_release/platform-linux-x64/q - run "$BATS_TEST_DIRNAME/../_release/platform-linux-x64/q" "$@" + run q "$@" else chmod +x "$BATS_TEST_DIRNAME/../_build/default/bin/q.exe" run "$BATS_TEST_DIRNAME/../_build/default/bin/q.exe" "$@"