Explorar el Código

chore: relocate tests.sh

Zaiming (Stone) Shi hace 3 años
padre
commit
1aa9abdb4d
Se han modificado 4 ficheros con 6 adiciones y 5 borrados
  1. 1 0
      .gitattributes
  2. 4 4
      .github/workflows/build_slim_packages.yaml
  3. 1 1
      scripts/buildx.sh
  4. 0 0
      scripts/pkg-tests.sh

+ 1 - 0
.gitattributes

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

+ 4 - 4
.github/workflows/build_slim_packages.yaml

@@ -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 }}

+ 1 - 1
scripts/buildx.sh

@@ -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}"

.ci/build_packages/tests.sh → scripts/pkg-tests.sh