Commit ab2432ee authored by Jacob Priddy's avatar Jacob Priddy 👌
Browse files

disable most of build for speed of debugging

parent b54c29fd
Pipeline #13205 failed with stage
in 1 minute and 28 seconds
......@@ -16,17 +16,17 @@ stages:
- coverage
- deploy
build_web_backend:
stage: build
script:
- src/backend/install-dev.sh
artifacts:
paths:
- src/backend/vendor
- src/backend/.env
- src/backend/composer.lock
# Currently set to build timeout
expire_in: 1 day
#build_web_backend:
# stage: build
# script:
# - src/backend/install-dev.sh
# artifacts:
# paths:
# - src/backend/vendor
# - src/backend/.env
# - src/backend/composer.lock
# # Currently set to build timeout
# expire_in: 1 day
#build_web_frontend:
# stage: build
......@@ -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_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
#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
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
......@@ -102,7 +102,7 @@ deploy application:
- docker build -t $DOORCODE_IMAGE_NAME -f prod.Dockerfile .
- docker build -t $NGINX_IMAGE_NAME -f nginx.Dockerfile .
- docker-compose -f docker-compose.prod.yml down
- sed -i "s/\(^DB_PASSWORD=\).*/\1$(cat POSTGRES_PASSWORD)/" $PROJ_DIR/.env
- sed -i "s/\(^DB_PASSWORD=\).*/\1$(cat $POSTGRES_PASSWORD)/" $PROJ_DIR/.env
- docker-compose -f docker-compose.prod.yml up -d
# Give it some time to spin up...
- sleep 10
......@@ -113,7 +113,7 @@ deploy application:
name: production
url: https://elock.cs.wallawalla.edu/api
on_stop: stop-prod
when: manual
# when: manual
only:
- master
......
Supports Markdown
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