[Rt-commit] rt branch, 4.4/github-actions-testing2, created. rt-4.4.4-458-gb9a3994b5f

Jim Brandt jbrandt at bestpractical.com
Tue May 25 08:10:03 EDT 2021


The branch, 4.4/github-actions-testing2 has been created
        at  b9a3994b5fa9027bc5f8cd1771d80e6831c37f50 (commit)

- Log -----------------------------------------------------------------
commit cba74f8dc1d26561bfbb82359e4ad2d4bc1ce72c
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Mon May 24 16:42:09 2021 -0400

    Pause travis testing while working on github actions

diff --git a/.travis.yml b/.travis.yml.pause
similarity index 100%
rename from .travis.yml
rename to .travis.yml.pause

commit 76e5ff438d81f877635ae1608ec698aa39ae7377
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Mon May 24 16:49:19 2021 -0400

    Add github actions config for rt-server tests with SQLite

diff --git a/.github/workflows/github-action.yml b/.github/workflows/github-action.yml
new file mode 100644
index 0000000000..ed12efa84b
--- /dev/null
+++ b/.github/workflows/github-action.yml
@@ -0,0 +1,39 @@
+#language: bash
+#services: docker
+
+on: push
+
+jobs:
+  rt_test_sqlite:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Check out RT
+        uses: actions/checkout at v2
+      - name: Build RT
+        env:
+          RT_TEST_PARALLEL: 1
+        shell: bash
+        run: |
+          docker build -t rt-base .
+          docker run -d -v $GITHUB_WORKSPACE:/rt --name rt rt-base
+          docker ps -a
+          docker exec rt bash -c "cd /rt && ./configure.ac --with-db-type=SQLite --with-my-user-group --enable-layout=inplace --enable-developer --enable-externalauth --enable-gpg --enable-smime && mkdir -p /rt/var && make testdeps"
+      - name: Run RT tests
+        shell: bash
+        run: docker exec -e RT_TEST_PARALLEL=1 rt bash -c "cd /rt && prove -lj6 t/*"
+      - name: Post results to Slack
+        if: always()
+        uses: edge/simple-slack-notify at v1.1.1
+        env:
+          SLACK_WEBHOOK_URL: ${{ secrets.SLACK_NOTIFICATIONS }}
+        with:
+          channel: '#github'
+          status: ${{ job.status }}
+          success_text: '${env.GITHUB_WORKFLOW} (${env.GITHUB_RUN_NUMBER}) tests completed successfully'
+          failure_text: '${env.GITHUB_WORKFLOW} (${env.GITHUB_RUN_NUMBER}) tests failed'
+          cancelled_text: '${env.GITHUB_WORKFLOW} (${env.GITHUB_RUN_NUMBER}) tests cancelled'
+          fields: |
+            [{ "title": "Repository", "value": "${env.GITHUB_REPOSITORY}", "short": true },
+            { "title": "Branch", "value": "${env.GITHUB_REF}", "short": true },
+            { "title": "Test", "value": "rt_test_sqlite", "short": true },
+            { "title": "URL", "value": "${env.GITHUB_SERVER_URL}/${env.GITHUB_REPOSITORY}/actions/runs/${env.GITHUB_RUN_ID}?check_suite_focus=true", "short": true }]

commit b9a3994b5fa9027bc5f8cd1771d80e6831c37f50
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Mon May 24 17:12:52 2021 -0400

    Run GPG tests now that the environment is updated

diff --git a/Dockerfile b/Dockerfile
index d77111ec6f..98bafcd6c0 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -9,7 +9,4 @@ ENV RT_DBA_PASSWORD password
 ENV RT_TEST_DB_HOST=172.17.0.2
 ENV RT_TEST_RT_HOST=172.17.0.3
 
-# Skip gpg tests until we update to gpg 2.2
-ENV SKIP_GPG_TESTS=1
-
 CMD tail -f /dev/null

-----------------------------------------------------------------------


More information about the rt-commit mailing list