Commit 0ff86ff6 authored by Jacob Priddy's avatar Jacob Priddy 👌

don't log depreciation errors as saml breaks if you do

parent 325179bd
Pipeline #13222 passed with stages
in 5 minutes and 17 seconds
......@@ -39,50 +39,50 @@ build_web_backend:
# - src/frontend/dist
# expire_in: 1 day
#test_php_styles:
# stage: test
# script:
# - cd src/backend
# - vendor/bin/php-cs-fixer fix --config=.php_cs -v --dry-run --stop-on-violation --using-cache=no
test_php_styles:
stage: test
script:
- cd src/backend
- vendor/bin/php-cs-fixer fix --config=.php_cs -v --dry-run --stop-on-violation --using-cache=no
#test_web_backend_unit:
# stage: test
# script:
# - cd src/backend
# - vendor/bin/phpunit --testsuite Unit
#
#test_web_backend_feature:
# stage: test
# script:
# - cd src/backend
# - vendor/bin/phpunit --testsuite Feature
#
#test_web_backend_database:
# stage: test
# script:
# - cd src/backend
# - vendor/bin/phpunit --testsuite Database
#
#generate_api_docs:
# stage: coverage
# script:
# - cd src/backend
# - sed -i 's/\(^APP_ENV=\).*/\1memory/' .env
# - "if (php artisan apidoc:generate | grep \"Exception\") then echo \"Failed to generate API docs.\" && false; else true; fi"
# artifacts:
# paths:
# - src/backend/public/docs
# expire_in: 1 day
#
#generate_code_coverage:
# stage: coverage
# script:
# - cd src/backend
# - phpdbg -qrr -d memory_limit=256M vendor/bin/phpunit --coverage-html cov
# artifacts:
# paths:
# - src/backend/cov
# expire_in: 30 days
test_web_backend_unit:
stage: test
script:
- cd src/backend
- vendor/bin/phpunit --testsuite Unit
test_web_backend_feature:
stage: test
script:
- cd src/backend
- vendor/bin/phpunit --testsuite Feature
test_web_backend_database:
stage: test
script:
- cd src/backend
- vendor/bin/phpunit --testsuite Database
generate_api_docs:
stage: coverage
script:
- cd src/backend
- sed -i 's/\(^APP_ENV=\).*/\1memory/' .env
- "if (php artisan apidoc:generate | grep \"Exception\") then echo \"Failed to generate API docs.\" && false; else true; fi"
artifacts:
paths:
- src/backend/public/docs
expire_in: 1 day
generate_code_coverage:
stage: coverage
script:
- cd src/backend
- phpdbg -qrr -d memory_limit=256M vendor/bin/phpunit --coverage-html cov
artifacts:
paths:
- src/backend/cov
expire_in: 30 days
deploy application:
image: tiangolo/docker-with-compose
......@@ -106,10 +106,11 @@ deploy application:
- docker build --build-arg APP_IMAGE=$DOORCODE_IMAGE_NAME -t $NGINX_IMAGE_NAME -f nginx.Dockerfile .
- docker stack deploy -c docker-compose.prod.yml doorcode --prune
# Give it some time to spin up...
- sleep 10
- sleep 30
# Make sure app is running
- "curl --fail --insecure --location https://${DEPLOY_ADDRESS}/api"
- "curl --fail --insecure --location https://${DEPLOY_ADDRESS}/api/docs"
- "curl --fail --insecure --silent --location https://${DEPLOY_ADDRESS}/api"
# API docs currently are not working
# - "curl --fail --insecure --location https://${DEPLOY_ADDRESS}/api/docs"
environment:
name: production
url: https://elock.cs.wallawalla.edu/api
......
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
date.timezone = "America/Los_Angeles"
memory_limit = 256M
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment