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=auto
*.* text eol=lf *.* text eol=lf
./build text eol=lf ./build text eol=lf

View File

@ -75,7 +75,7 @@ jobs:
- name: build and test tgz package - name: build and test tgz package
run: | run: |
make ${EMQX_NAME}-tgz 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 - name: run static checks
if: contains(matrix.os, 'ubuntu') if: contains(matrix.os, 'ubuntu')
run: | run: |
@ -83,15 +83,15 @@ jobs:
- name: build and test deb/rpm packages - name: build and test deb/rpm packages
run: | run: |
make ${EMQX_NAME}-pkg 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) - name: build and test tgz package (Elixir)
run: | run: |
make ${EMQX_NAME}-elixir-tgz 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) - name: build and test deb/rpm packages (Elixir)
run: | run: |
make ${EMQX_NAME}-elixirpkg 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 - uses: actions/upload-artifact@v2
with: with:
name: ${{ matrix.profile}}-${{ matrix.otp }}-${{ matrix.os }} name: ${{ matrix.profile}}-${{ matrix.otp }}-${{ matrix.os }}

View File

@ -120,7 +120,7 @@ else
MAKE_TARGET="${PROFILE}-${PKGTYPE}" MAKE_TARGET="${PROFILE}-${PKGTYPE}"
fi 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 if docker info; then
docker run --rm --privileged tonistiigi/binfmt:latest --install "${ARCH}" docker run --rm --privileged tonistiigi/binfmt:latest --install "${ARCH}"