[Rt-commit] rt branch, 4.4/run-travis-tests-on-postgresql, created. rt-4.4.4-131-g2b950d4620

Dianne Skoll dianne at bestpractical.com
Fri Aug 7 14:17:25 EDT 2020


The branch, 4.4/run-travis-tests-on-postgresql has been created
        at  2b950d46206d67d3803b915dcda3f809c03fa1c1 (commit)

- Log -----------------------------------------------------------------
commit 2b950d46206d67d3803b915dcda3f809c03fa1c1
Author: Dianne Skoll <dianne at bestpractical.com>
Date:   Fri Aug 7 14:16:59 2020 -0400

    Run tests using PostgreSQL instead of MariaDB

diff --git a/.travis.yml b/.travis.yml
index 9a3695ae32..0d2e7205ad 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -6,15 +6,16 @@ notifications:
     secure: ebb/6lbr1ob7wMh04C5PzM5/NNz6IstEUaUROA7BATuKKgPetl6qwmQNwvlwE5zYvJQBWQwKJ70JaCzJkXK6JVMVRRAWsXINJTzMfSqsoXEcJ59c5isf0bsnspVO7jxHTfXF/NZngR4EuPwH5v5lWp9m++j90t9nBKFFVi34WUE=
 
 env:
-  - RT_TEST_PARALLEL=1 RT_DBA_USER=root RT_DBA_PASSWORD=password DB_VERSION_TAG=10.3
+  - RT_TEST_PARALLEL=1 RT_DBA_USER=postgres RT_DBA_PASSWORD=password DB_VERSION_TAG=9.6
 
 # $TRAVIS_BUILD_DIR will have a clone of the current branch
 before_install:
-  - docker run --name mariadb -e MYSQL_ROOT_PASSWORD=password -d mariadb:$DB_VERSION_TAG
+  - docker run --name postgresql --mount type=tmpfs,destination=/var/lib/postgresql -e POSTGRES_PASSWORD=password -d postgres:$DB_VERSION_TAG
   - docker build -t rt-base .
-  - docker run -d -v $TRAVIS_BUILD_DIR:/rt --name rt --link mariadb:db rt-base
+  - docker run -d -v $TRAVIS_BUILD_DIR:/rt --name rt --link postgresql:db rt-base
   - docker ps -a
-  - docker exec -it rt bash -c "cd /rt && ./configure.ac --with-db-type=mysql --with-my-user-group --enable-layout=inplace --enable-developer --enable-externalauth --disable-gpg --disable-smime && mkdir -p /rt/var && make testdeps"
+  - docker exec -it rt bash -c "apt-get update && apt-get install -y libdbd-pg-perl"
+  - docker exec -it rt bash -c "cd /rt && ./configure.ac --with-db-type=Pg --with-my-user-group --enable-layout=inplace --enable-developer --enable-externalauth --disable-gpg --disable-smime && mkdir -p /rt/var && make testdeps"
 
 script:
     - docker exec -it rt bash -c "cd /rt && prove -lj9 t/*"
diff --git a/Dockerfile b/Dockerfile
index d77111ec6f..a23d7f1df5 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -4,7 +4,7 @@ FROM bpssysadmin/rt-base-debian-stretch
 
 ENV RT_TEST_PARALLEL 1
 ENV RT_TEST_DEVEL 1
-ENV RT_DBA_USER root
+ENV RT_DBA_USER postgres
 ENV RT_DBA_PASSWORD password
 ENV RT_TEST_DB_HOST=172.17.0.2
 ENV RT_TEST_RT_HOST=172.17.0.3

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


More information about the rt-commit mailing list