Skip to content

Commit

Permalink
travis testing updates (openemr#3688)
Browse files Browse the repository at this point in the history
* trying to get php8 travis tests working

* some more mariadb 10.5 auto-testing work

* docker php 8 fixes

* fix

* fix
  • Loading branch information
bradymiller authored Jun 29, 2020
1 parent a185e47 commit acfb017
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 18 deletions.
18 changes: 12 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,12 @@ language: php
echo "------------------"
echo "Main OpenEMR Build"
echo "------------------"
composer install || failTest=true
if [ "$SKIP_COMPOSER_PLATFORM_REQS" = true ]; then
echo "(For PHP8 build to work, using --ignore-platform-reqs parameter for composer install; this is temporary)"
composer install --ignore-platform-reqs || failTest=true
else
composer install || failTest=true
fi
npm install || failTest=true
npm run build || failTest=true
composer global require phing/phing || failTest=true
Expand Down Expand Up @@ -556,7 +561,7 @@ jobs:
- *job_summary_prep
- echo -e "${jobSummary}"
- if $failJob; then travis_terminate 1; fi
- name: 'Build and test - PHP 7.2 - Nginx - MariaDB 10.4'
- name: 'Build and test - PHP 7.2 - Nginx - MariaDB 10.5'
php: '7.2'
env:
- DOCKER_DIR=nginx_72
Expand All @@ -579,7 +584,7 @@ jobs:
- *job_summary_prep
- echo -e "${jobSummary}"
- if $failJob; then travis_terminate 1; fi
- name: 'Build and test - PHP 7.3 - Nginx - MariaDB 10.4'
- name: 'Build and test - PHP 7.3 - Nginx - MariaDB 10.5'
php: '7.3'
env:
- DOCKER_DIR=nginx_73
Expand All @@ -602,7 +607,7 @@ jobs:
- *job_summary_prep
- echo -e "${jobSummary}"
- if $failJob; then travis_terminate 1; fi
- name: 'Build and test - PHP 7.4 - Nginx - MariaDB 10.4'
- name: 'Build and test - PHP 7.4 - Nginx - MariaDB 10.5'
php: '7.4'
env:
- DOCKER_DIR=nginx_74
Expand All @@ -625,12 +630,13 @@ jobs:
- *job_summary_prep
- echo -e "${jobSummary}"
- if $failJob; then travis_terminate 1; fi
- name: 'Build and test - PHP 8.0 - Nginx - MariaDB 10.4'
- name: 'Build and test - PHP 8.0 - Nginx - MariaDB 10.5'
php: 'nightly'
env:
- DOCKER_DIR=nginx_80
- OPENEMR_DIR=/usr/share/nginx/html/openemr
- CHROMIUM_INSTALL="apt-get update; apt-get install -y zip libnss3 chromium"
- SKIP_COMPOSER_PLATFORM_REQS=true
script:
- failJob=false
- *dockers_env_start
Expand All @@ -649,4 +655,4 @@ jobs:
- echo -e "${jobSummary}"
- if $failJob; then travis_terminate 1; fi
allow_failures:
- name: 'Build and test - PHP 8.0 - Nginx - MariaDB 10.4'
- name: 'Build and test - PHP 8.0 - Nginx - MariaDB 10.5'
4 changes: 2 additions & 2 deletions ci/nginx_72/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ version: '3.1'
services:
mysql:
restart: always
image: mariadb:10.4
command: ['mysqld','--character-set-server=utf8']
image: mariadb:10.5
command: ['mysqld','--character-set-server=utf8', '--collation-server=utf8_general_ci']
environment:
MYSQL_ROOT_PASSWORD: root
openemr:
Expand Down
4 changes: 2 additions & 2 deletions ci/nginx_73/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ version: '3.1'
services:
mysql:
restart: always
image: mariadb:10.4
command: ['mysqld','--character-set-server=utf8']
image: mariadb:10.5
command: ['mysqld','--character-set-server=utf8', '--collation-server=utf8_general_ci']
environment:
MYSQL_ROOT_PASSWORD: root
openemr:
Expand Down
4 changes: 2 additions & 2 deletions ci/nginx_74/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ version: '3.1'
services:
mysql:
restart: always
image: mariadb:10.4
command: ['mysqld','--character-set-server=utf8']
image: mariadb:10.5
command: ['mysqld','--character-set-server=utf8', '--collation-server=utf8_general_ci']
environment:
MYSQL_ROOT_PASSWORD: root
openemr:
Expand Down
4 changes: 2 additions & 2 deletions ci/nginx_80/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ version: '3.1'
services:
mysql:
restart: always
image: mariadb:10.4
command: ['mysqld','--character-set-server=utf8']
image: mariadb:10.5
command: ['mysqld','--character-set-server=utf8', '--collation-server=utf8_general_ci']
environment:
MYSQL_ROOT_PASSWORD: root
openemr:
Expand Down
6 changes: 3 additions & 3 deletions contrib/util/docker/dockers/dev-php-fpm-8-0-redis/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# php-fpm Dockerfile build for openemr development docker environment
# This docker is hosted here: https://hub.docker.com/r/openemr/dev-php-fpm/ <tag is 7.2>
#
FROM php:rc
FROM devilbox/php-fpm-8.0

# Update
RUN apt-get update
Expand All @@ -35,8 +35,8 @@ RUN chmod uga+x /usr/local/bin/install-php-extensions && sync && \
sockets \
tokenizer \
xmlreader \
calendar \
redis
calendar
# redis IS NOT YET WORKING I BUILD. KEEP TRYING TO GET THIS TO WORK INTERMITTENTLY

# Copy over the php.ini conf
COPY php.ini /usr/local/etc/php/php.ini
Expand Down
2 changes: 1 addition & 1 deletion contrib/util/docker/dockers/dev-php-fpm-8-0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# php-fpm Dockerfile build for openemr development docker environment
# This docker is hosted here: https://hub.docker.com/r/openemr/dev-php-fpm/ <tag is 7.2>
#
FROM php:rc
FROM devilbox/php-fpm-8.0

# Update
RUN apt-get update
Expand Down

0 comments on commit acfb017

Please sign in to comment.