forked from openemr/openemr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
658 lines (657 loc) · 24.8 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
language: php
.steps:
- &composer_github_auth |
githubTokenRateLimitRequest=`curl -H "Authorization: token 310659f0a8658693af9ccb9da8969584b598910a" https://api.github.com/rate_limit`
githubTokenRateLimit=`echo $githubTokenRateLimitRequest | jq '.rate.remaining'`
echo "Number of github api requests remaining is $githubTokenRateLimit"
if [ "$githubTokenRateLimit" -gt 500 ]; then
echo "Using composer github api token"
composer config --global --auth github-oauth.github.com 310659f0a8658693af9ccb9da8969584b598910a
else
echo "Not using composer github api token"
fi
- &lint_style |
failTest=false
echo "--------------------------------------"
echo "Checking for PHP styling (PSR-12) issues"
echo "--------------------------------------"
composer global require "squizlabs/php_codesniffer=3.*" || failTest=true
$HOME/.config/composer/vendor/bin/phpcs -p -n --extensions=php,inc --report-width=120 --standard=ci/phpcs.xml --report=full . || failTest=true
# todo clean up method visibility and other refactors in src/
# $HOME/.config/composer/vendor/bin/phpcs -p -n --extensions=php,inc --report-width=120 --standard=ci/phpcs_src.xml --report=full src/ || failTest=true
if $failTest; then
failJob=true
mes="FAILED"
else
mes="PASSED"
fi
echo "-----------------------------------------------"
jobTest="${mes} - Checking for PHP styling (PSR-12) issues"
jobTests+="${jobTest}\n"
echo "${jobTest}"
echo "-----------------------------------------------"
- &lint_theme_style |
failTest=false
echo "--------------------------------------"
echo "Checking for PHP theme styling issues"
echo "--------------------------------------"
npm install || failTest=true
npx stylelint "**/*.css" || failTest=true
npx stylelint "**/*.scss" || failTest=true
if $failTest; then
failJob=true
mes="FAILED"
else
mes="PASSED"
fi
echo "-----------------------------------------------"
jobTest="${mes} - Checking for PHP theme styling issues"
jobTests+="${jobTest}\n"
echo "${jobTest}"
echo "-----------------------------------------------"
- &lint_syntax |
failTest=false
echo "------------------------------"
echo "Checking for PHP syntax errors"
echo "------------------------------"
failSyntax=false
if find . -type f -name "*.php" -exec php -d error_reporting=32767 -l {} \; 2>&1 >&- | grep "^"; then failSyntax=true; fi
if find . -type f -name "*.inc" -exec php -d error_reporting=32767 -l {} \; 2>&1 >&- | grep "^"; then failSyntax=true; fi
if $failSyntax; then
failTest=true
fi
if $failTest; then
failJob=true
mes="FAILED"
else
mes="PASSED"
fi
echo "---------------------------------------"
jobTest="${mes} - Checking for PHP syntax errors"
jobTests+="${jobTest}\n"
echo "${jobTest}"
echo "---------------------------------------"
- &dockers_env_start |
failTest=false
echo "---------------------------------------------------------------------"
echo "Start up the appropriate testing docker system to allow testing below"
echo "---------------------------------------------------------------------"
cd ci/${DOCKER_DIR} || failTest=true
docker-compose up -d || failTest=true
cd ../../ || failTest=true
if $failTest; then
failJob=true
mes="FAILED"
else
mes="PASSED"
fi
echo "------------------------------------------------------------------------------"
jobTest="${mes} - Start up the appropriate testing docker system to allow testing below"
jobTests+="${jobTest}\n"
echo "${jobTest}"
echo "------------------------------------------------------------------------------"
- &main_build |
failTest=false
echo "------------------"
echo "Main OpenEMR Build"
echo "------------------"
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
$HOME/.config/composer/vendor/bin/phing vendor-clean || failTest=true
$HOME/.config/composer/vendor/bin/phing assets-clean || failTest=true
composer global remove phing/phing || failTest=true
composer dump-autoload -o || failTest=true
rm -fr node_modules || failTest=true
if $failTest; then
failJob=true
mes="FAILED"
else
mes="PASSED"
fi
echo "---------------------------"
jobTest="${mes} - Main OpenEMR Build"
jobTests+="${jobTest}\n"
echo "${jobTest}"
echo "---------------------------"
- &ccda_build |
failTest=false
echo "------------------"
echo "CCDA OpenEMR Build"
echo "------------------"
cd ccdaservice || failTest=true
npm install || failTest=true
cd ../ || failTest=true
if $failTest; then
failJob=true
mes="FAILED"
else
mes="PASSED"
fi
echo "---------------------------"
jobTest="${mes} - CCDA OpenEMR Build"
jobTests+="${jobTest}\n"
echo "${jobTest}"
echo "---------------------------"
- &install_configure |
failTest=false
echo "----------------------------------------------------------------------------------------------"
echo "Install and Configure OpenEMR for testing (remove registration modal on login and turn on api)"
echo "----------------------------------------------------------------------------------------------"
sudo chmod 666 sites/default/sqlconf.php || failTest=true
sudo chmod -R 777 sites/default/documents || failTest=true
sed -e 's@^exit;@ @' < contrib/util/installScripts/InstallerAuto.php > contrib/util/installScripts/InstallerAutoTemp.php || failTest=true
docker exec -i $(docker ps | grep _openemr | cut -f 1 -d " ") sh -c "php -f ${OPENEMR_DIR}/contrib/util/installScripts/InstallerAutoTemp.php rootpass=root server=mysql loginhost=%" || failTest=true
docker exec -i $(docker ps | grep _openemr | cut -f 1 -d " ") sh -c "rm -f ${OPENEMR_DIR}/contrib/util/installScripts/InstallerAutoTemp.php" || failTest=true
docker exec -i $(docker ps | grep _openemr | cut -f 1 -d " ") sh -c 'mysql -u openemr --password="openemr" -h mysql -e "INSERT INTO product_registration (opt_out) VALUES (1)" openemr' || failTest=true
docker exec -i $(docker ps | grep _openemr | cut -f 1 -d " ") sh -c 'mysql -u openemr --password="openemr" -h mysql -e "UPDATE globals SET gl_value = 1 WHERE gl_name = \"rest_api\"" openemr' || failTest=true
docker exec -i $(docker ps | grep _openemr | cut -f 1 -d " ") sh -c 'mysql -u openemr --password="openemr" -h mysql -e "UPDATE globals SET gl_value = 1 WHERE gl_name = \"rest_fhir_api\"" openemr' || failTest=true
docker exec -i $(docker ps | grep _openemr | cut -f 1 -d " ") sh -c 'mysql -u openemr --password="openemr" -h mysql -e "UPDATE globals SET gl_value = 1 WHERE gl_name = \"rest_portal_api\"" openemr' || failTest=true
docker exec -i $(docker ps | grep _openemr | cut -f 1 -d " ") sh -c 'mysql -u openemr --password="openemr" -h mysql -e "UPDATE globals SET gl_value = 1 WHERE gl_name = \"rest_portal_fhir_api\"" openemr' || failTest=true
if $failTest; then
failJob=true
mes="FAILED"
else
mes="PASSED"
fi
echo "-------------------------------------------------------------------------------------------------------"
jobTest="${mes} - Install and Configure OpenEMR for testing (remove registration modal on login and turn on api)"
jobTests+="${jobTest}\n"
echo "${jobTest}"
echo "-------------------------------------------------------------------------------------------------------"
- &build_test_unit |
failTest=false
echo "---------------"
echo "Run Unit Tests"
echo "---------------"
docker exec -i $(docker ps | grep _openemr | cut -f 1 -d " ") sh -c "cd ${OPENEMR_DIR}; php ${OPENEMR_DIR}/vendor/bin/phpunit --testsuite unit --testdox" || failTest=true
if $failTest; then
failJob=true
mes="FAILED"
else
mes="PASSED"
fi
echo "-----------------------"
jobTest="${mes} - Run Unit Tests"
jobTests+="${jobTest}\n"
echo "${jobTest}"
echo "-----------------------"
- &build_test_e2e |
failTest=false
echo "-------------"
echo "Run E2e Tests"
echo "-------------"
docker exec -i $(docker ps | grep _openemr | cut -f 1 -d " ") sh -c "${CHROMIUM_INSTALL}; export PANTHER_NO_SANDBOX=1; cd ${OPENEMR_DIR}; php ${OPENEMR_DIR}/vendor/bin/phpunit --testsuite e2e --testdox" || failTest=true
if $failTest; then
failJob=true
mes="FAILED"
else
mes="PASSED"
fi
echo "----------------------"
jobTest="${mes} - Run E2e Tests"
jobTests+="${jobTest}\n"
echo "${jobTest}"
echo "----------------------"
- &build_test_api |
failTest=false
echo "-------------"
echo "Run Api Tests"
echo "-------------"
docker exec -i $(docker ps | grep _openemr | cut -f 1 -d " ") sh -c "cd ${OPENEMR_DIR}; php ${OPENEMR_DIR}/vendor/bin/phpunit --testsuite api --testdox" || failTest=true
if $failTest; then
failJob=true
mes="FAILED"
else
mes="PASSED"
fi
echo "----------------------"
jobTest="${mes} - Run Api Tests"
jobTests+="${jobTest}\n"
echo "${jobTest}"
echo "----------------------"
- &build_test_fixtures |
failTest=false
echo "-------------"
echo "Run Fixture Tests"
echo "-------------"
docker exec -i $(docker ps | grep _openemr | cut -f 1 -d " ") sh -c "cd ${OPENEMR_DIR}; php ${OPENEMR_DIR}/vendor/bin/phpunit --testsuite fixtures --testdox" || failTest=true
if $failTest; then
failJob=true
mes="FAILED"
else
mes="PASSED"
fi
echo "----------------------"
jobTest="${mes} - Run Fixture Tests"
jobTests+="${jobTest}\n"
echo "${jobTest}"
echo "----------------------"
- &build_test_services |
failTest=false
echo "-------------"
echo "Run Service Tests"
echo "-------------"
docker exec -i $(docker ps | grep _openemr | cut -f 1 -d " ") sh -c "cd ${OPENEMR_DIR}; php ${OPENEMR_DIR}/vendor/bin/phpunit --testsuite services --testdox" || failTest=true
if $failTest; then
failJob=true
mes="FAILED"
else
mes="PASSED"
fi
echo "----------------------"
jobTest="${mes} - Run Service Tests"
jobTests+="${jobTest}\n"
echo "${jobTest}"
echo "----------------------"
- &build_test_validators |
failTest=false
echo "-------------"
echo "Run Validator Tests"
echo "-------------"
docker exec -i $(docker ps | grep _openemr | cut -f 1 -d " ") sh -c "cd ${OPENEMR_DIR}; php ${OPENEMR_DIR}/vendor/bin/phpunit --testsuite validators --testdox" || failTest=true
if $failTest; then
failJob=true
mes="FAILED"
else
mes="PASSED"
fi
echo "----------------------"
jobTest="${mes} - Run Validator Tests"
jobTests+="${jobTest}\n"
echo "${jobTest}"
echo "----------------------"
- &build_test_controllers |
failTest=false
echo "-------------"
echo "Run Controller Tests"
echo "-------------"
docker exec -i $(docker ps | grep _openemr | cut -f 1 -d " ") sh -c "cd ${OPENEMR_DIR}; php ${OPENEMR_DIR}/vendor/bin/phpunit --testsuite controllers --testdox" || failTest=true
if $failTest; then
failJob=true
mes="FAILED"
else
mes="PASSED"
fi
echo "----------------------"
jobTest="${mes} - Run Controller Tests"
jobTests+="${jobTest}\n"
echo "${jobTest}"
echo "----------------------"
- &build_test_common |
failTest=false
echo "-------------"
echo "Run Common Tests"
echo "-------------"
docker exec -i $(docker ps | grep _openemr | cut -f 1 -d " ") sh -c "cd ${OPENEMR_DIR}; php ${OPENEMR_DIR}/vendor/bin/phpunit --testsuite common --testdox" || failTest=true
if $failTest; then
failJob=true
mes="FAILED"
else
mes="PASSED"
fi
echo "----------------------"
jobTest="${mes} - Run Common Tests"
jobTests+="${jobTest}\n"
echo "${jobTest}"
echo "----------------------"
- &job_summary_prep |
if $failJob; then
mes="FAILED"
else
mes="PASSED"
fi
jobSummary="--------------------------------------------\n"
jobSummary+="--------------------------------------------\n"
jobSummary+="${mes} - JOB SUMMARY\n"
jobSummary+="--------------------------------------------\n"
jobSummary+="${jobTests}"
jobSummary+="--------------------------------------------"
before_install:
- echo "extension=ldap.so" >>php --ini | grep "Loaded Configuration" | sed -e "s|.:\s||"``
before_script:
- echo 'error_reporting = "E_ALL & ~E_NOTICE & ~E_STRICT"' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
jobs:
include:
- name: 'Psr12 style'
php: '7.4'
script:
- failJob=false
- *composer_github_auth
- *lint_style
- *job_summary_prep
- echo -e "${jobSummary}"
- if $failJob; then travis_terminate 1; fi
- name: 'Theme style'
php: '7.4'
script:
- failJob=false
- *lint_theme_style
- *job_summary_prep
- echo -e "${jobSummary}"
- if $failJob; then travis_terminate 1; fi
- name: 'Syntax - PHP 7.2'
php: '7.2'
script:
- failJob=false
- *lint_syntax
- *job_summary_prep
- echo -e "${jobSummary}"
- if $failJob; then travis_terminate 1; fi
- name: 'Syntax - PHP 7.3'
php: '7.3'
script:
- failJob=false
- *lint_syntax
- *job_summary_prep
- echo -e "${jobSummary}"
- if $failJob; then travis_terminate 1; fi
- name: 'Syntax - PHP 7.4'
php: '7.4'
script:
- failJob=false
- *lint_syntax
- *job_summary_prep
- echo -e "${jobSummary}"
- if $failJob; then travis_terminate 1; fi
- name: 'Syntax - PHP 8.0'
php: 'nightly'
script:
- failJob=false
- *lint_syntax
- *job_summary_prep
- echo -e "${jobSummary}"
- if $failJob; then travis_terminate 1; fi
- name: 'Build and test - PHP 7.3 - Apache - MariaDB 10.5'
php: '7.3'
env:
- DOCKER_DIR=apache_73_105
- OPENEMR_DIR=/var/www/localhost/htdocs/openemr
- CHROMIUM_INSTALL="apk update; apk add --no-cache chromium chromium-chromedriver; export PANTHER_CHROME_DRIVER_BINARY=/usr/lib/chromium/chromedriver"
script:
- failJob=false
- *dockers_env_start
- *composer_github_auth
- *main_build
- *ccda_build
- *install_configure
- *build_test_unit
- *build_test_e2e
- *build_test_api
- *build_test_fixtures
- *build_test_services
- *build_test_validators
- *build_test_controllers
- *build_test_common
- *job_summary_prep
- echo -e "${jobSummary}"
- if $failJob; then travis_terminate 1; fi
- name: 'Build and test - PHP 7.3 - Apache - MariaDB 10.4'
php: '7.3'
env:
- DOCKER_DIR=apache_73_104
- OPENEMR_DIR=/var/www/localhost/htdocs/openemr
- CHROMIUM_INSTALL="apk update; apk add --no-cache chromium chromium-chromedriver; export PANTHER_CHROME_DRIVER_BINARY=/usr/lib/chromium/chromedriver"
script:
- failJob=false
- *dockers_env_start
- *composer_github_auth
- *main_build
- *ccda_build
- *install_configure
- *build_test_unit
- *build_test_e2e
- *build_test_api
- *build_test_fixtures
- *build_test_services
- *build_test_validators
- *build_test_controllers
- *build_test_common
- *job_summary_prep
- echo -e "${jobSummary}"
- if $failJob; then travis_terminate 1; fi
- name: 'Build and test - PHP 7.3 - Apache - MariaDB 10.3'
php: '7.3'
env:
- DOCKER_DIR=apache_73_103
- OPENEMR_DIR=/var/www/localhost/htdocs/openemr
- CHROMIUM_INSTALL="apk update; apk add --no-cache chromium chromium-chromedriver; export PANTHER_CHROME_DRIVER_BINARY=/usr/lib/chromium/chromedriver"
script:
- failJob=false
- *dockers_env_start
- *composer_github_auth
- *main_build
- *ccda_build
- *install_configure
- *build_test_unit
- *build_test_e2e
- *build_test_api
- *build_test_fixtures
- *build_test_services
- *build_test_validators
- *build_test_controllers
- *build_test_common
- *job_summary_prep
- echo -e "${jobSummary}"
- if $failJob; then travis_terminate 1; fi
- name: 'Build and test - PHP 7.3 - Apache - MariaDB 10.2'
php: '7.3'
env:
- DOCKER_DIR=apache_73_102
- OPENEMR_DIR=/var/www/localhost/htdocs/openemr
- CHROMIUM_INSTALL="apk update; apk add --no-cache chromium chromium-chromedriver; export PANTHER_CHROME_DRIVER_BINARY=/usr/lib/chromium/chromedriver"
script:
- failJob=false
- *dockers_env_start
- *composer_github_auth
- *main_build
- *ccda_build
- *install_configure
- *build_test_unit
- *build_test_e2e
- *build_test_api
- *build_test_fixtures
- *build_test_services
- *build_test_validators
- *build_test_controllers
- *build_test_common
- *job_summary_prep
- echo -e "${jobSummary}"
- if $failJob; then travis_terminate 1; fi
- name: 'Build and test - PHP 7.3 - Apache - MariaDB 10.1'
php: '7.3'
env:
- DOCKER_DIR=apache_73_101
- OPENEMR_DIR=/var/www/localhost/htdocs/openemr
- CHROMIUM_INSTALL="apk update; apk add --no-cache chromium chromium-chromedriver; export PANTHER_CHROME_DRIVER_BINARY=/usr/lib/chromium/chromedriver"
script:
- failJob=false
- *dockers_env_start
- *composer_github_auth
- *main_build
- *ccda_build
- *install_configure
- *build_test_unit
- *build_test_e2e
- *build_test_api
- *build_test_fixtures
- *build_test_services
- *build_test_validators
- *build_test_controllers
- *build_test_common
- *job_summary_prep
- echo -e "${jobSummary}"
- if $failJob; then travis_terminate 1; fi
- name: 'Build and test - PHP 7.3 - Apache - MySQL 8'
php: '7.3'
env:
- DOCKER_DIR=apache_73_8
- OPENEMR_DIR=/var/www/localhost/htdocs/openemr
- CHROMIUM_INSTALL="apk update; apk add --no-cache chromium chromium-chromedriver; export PANTHER_CHROME_DRIVER_BINARY=/usr/lib/chromium/chromedriver"
script:
- failJob=false
- *dockers_env_start
- *composer_github_auth
- *main_build
- *ccda_build
- *install_configure
- *build_test_unit
- *build_test_e2e
- *build_test_api
- *build_test_fixtures
- *build_test_services
- *build_test_validators
- *build_test_controllers
- *build_test_common
- *job_summary_prep
- echo -e "${jobSummary}"
- if $failJob; then travis_terminate 1; fi
- name: 'Build and test - PHP 7.3 - Apache - MySQL 5.7'
php: '7.3'
env:
- DOCKER_DIR=apache_73_57
- OPENEMR_DIR=/var/www/localhost/htdocs/openemr
- CHROMIUM_INSTALL="apk update; apk add --no-cache chromium chromium-chromedriver; export PANTHER_CHROME_DRIVER_BINARY=/usr/lib/chromium/chromedriver"
script:
- failJob=false
- *dockers_env_start
- *composer_github_auth
- *main_build
- *ccda_build
- *install_configure
- *build_test_unit
- *build_test_e2e
- *build_test_api
- *build_test_fixtures
- *build_test_services
- *build_test_validators
- *build_test_controllers
- *build_test_common
- *job_summary_prep
- echo -e "${jobSummary}"
- if $failJob; then travis_terminate 1; fi
- name: 'Build and test - PHP 7.3 - Apache - MySQL 5.6'
php: '7.3'
env:
- DOCKER_DIR=apache_73_56
- OPENEMR_DIR=/var/www/localhost/htdocs/openemr
- CHROMIUM_INSTALL="apk update; apk add --no-cache chromium chromium-chromedriver; export PANTHER_CHROME_DRIVER_BINARY=/usr/lib/chromium/chromedriver"
script:
- failJob=false
- *dockers_env_start
- *composer_github_auth
- *main_build
- *ccda_build
- *install_configure
- *build_test_unit
- *build_test_e2e
- *build_test_api
- *build_test_fixtures
- *build_test_services
- *build_test_validators
- *build_test_controllers
- *build_test_common
- *job_summary_prep
- echo -e "${jobSummary}"
- if $failJob; then travis_terminate 1; fi
- name: 'Build and test - PHP 7.2 - Nginx - MariaDB 10.5'
php: '7.2'
env:
- DOCKER_DIR=nginx_72
- OPENEMR_DIR=/usr/share/nginx/html/openemr
- CHROMIUM_INSTALL="apt-get update; apt-get install -y zip libnss3 chromium=80.0.3987.162-1~deb10u1 chromium-common=80.0.3987.162-1~deb10u1"
script:
- failJob=false
- *dockers_env_start
- *composer_github_auth
- *main_build
- *ccda_build
- *install_configure
- *build_test_unit
- *build_test_e2e
- *build_test_fixtures
- *build_test_services
- *build_test_validators
- *build_test_controllers
- *build_test_common
- *job_summary_prep
- echo -e "${jobSummary}"
- if $failJob; then travis_terminate 1; fi
- name: 'Build and test - PHP 7.3 - Nginx - MariaDB 10.5'
php: '7.3'
env:
- DOCKER_DIR=nginx_73
- OPENEMR_DIR=/usr/share/nginx/html/openemr
- CHROMIUM_INSTALL="apt-get update; apt-get install -y zip libnss3 chromium=80.0.3987.162-1~deb10u1 chromium-common=80.0.3987.162-1~deb10u1"
script:
- failJob=false
- *dockers_env_start
- *composer_github_auth
- *main_build
- *ccda_build
- *install_configure
- *build_test_unit
- *build_test_e2e
- *build_test_fixtures
- *build_test_services
- *build_test_validators
- *build_test_controllers
- *build_test_common
- *job_summary_prep
- echo -e "${jobSummary}"
- if $failJob; then travis_terminate 1; fi
- name: 'Build and test - PHP 7.4 - Nginx - MariaDB 10.5'
php: '7.4'
env:
- DOCKER_DIR=nginx_74
- OPENEMR_DIR=/usr/share/nginx/html/openemr
- CHROMIUM_INSTALL="apt-get update; apt-get install -y zip libnss3 chromium=80.0.3987.162-1~deb10u1 chromium-common=80.0.3987.162-1~deb10u1"
script:
- failJob=false
- *dockers_env_start
- *composer_github_auth
- *main_build
- *ccda_build
- *install_configure
- *build_test_unit
- *build_test_e2e
- *build_test_fixtures
- *build_test_services
- *build_test_validators
- *build_test_controllers
- *build_test_common
- *job_summary_prep
- echo -e "${jobSummary}"
- if $failJob; then travis_terminate 1; fi
- 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=80.0.3987.162-1~deb10u1 chromium-common=80.0.3987.162-1~deb10u1"
- SKIP_COMPOSER_PLATFORM_REQS=true
script:
- failJob=false
- *dockers_env_start
- *composer_github_auth
- *main_build
- *ccda_build
- *install_configure
- *build_test_unit
- *build_test_e2e
- *build_test_fixtures
- *build_test_services
- *build_test_validators
- *build_test_controllers
- *build_test_common
- *job_summary_prep
- echo -e "${jobSummary}"
- if $failJob; then travis_terminate 1; fi
allow_failures:
- name: 'Build and test - PHP 8.0 - Nginx - MariaDB 10.5'