chore: relocate tests.sh

This commit is contained in:
Zaiming (Stone) Shi 2022-02-21 10:27:45 +01:00
parent e72c07c31e
commit 1aa9abdb4d
4 changed files with 6 additions and 5 deletions

1
.gitattributes vendored
View File

@ -1,3 +1,4 @@
build text eol=lf
* text=auto
*.* text eol=lf
./build text eol=lf

View File

@ -75,7 +75,7 @@ jobs:
- name: build and test tgz package
run: |
make ${EMQX_NAME}-tgz
.ci/build_packages/tests.sh "$EMQX_PKG_NAME" tgz amd64
./scripts/pkg-tests.sh "$EMQX_PKG_NAME" tgz amd64
- name: run static checks
if: contains(matrix.os, 'ubuntu')
run: |
@ -83,15 +83,15 @@ jobs:
- name: build and test deb/rpm packages
run: |
make ${EMQX_NAME}-pkg
.ci/build_packages/tests.sh "$EMQX_PKG_NAME" pkg amd64
./scripts/pkg-tests.sh "$EMQX_PKG_NAME" pkg amd64
- name: build and test tgz package (Elixir)
run: |
make ${EMQX_NAME}-elixir-tgz
.ci/build_packages/tests.sh "$EMQX_ELIXIRPKG_NAME" tgz amd64
./scripts/pkg-tests.sh "$EMQX_ELIXIRPKG_NAME" tgz amd64
- name: build and test deb/rpm packages (Elixir)
run: |
make ${EMQX_NAME}-elixirpkg
.ci/build_packages/tests.sh "$EMQX_ELIXIRPKG_NAME" pkg amd64
./scripts/pkg-tests.sh "$EMQX_ELIXIRPKG_NAME" pkg amd64
- uses: actions/upload-artifact@v2
with:
name: ${{ matrix.profile}}-${{ matrix.otp }}-${{ matrix.os }}

View File

@ -120,7 +120,7 @@ else
MAKE_TARGET="${PROFILE}-${PKGTYPE}"
fi
CMD_RUN="export EMQX_NAME=\"$PROFILE\"; make ${MAKE_TARGET} && .ci/build_packages/tests.sh $PKG_NAME $PKGTYPE $ARCH"
CMD_RUN="export EMQX_NAME=\"$PROFILE\"; make ${MAKE_TARGET} && ./scripts/pkg-tests.sh $PKG_NAME $PKGTYPE $ARCH"
if docker info; then
docker run --rm --privileged tonistiigi/binfmt:latest --install "${ARCH}"