Newer
Older
check_format:
stage: source_check
script:
- npx prettier --ignore-path .gitignore --check "**/*.{html,js,json,md}"
lint:
stage: source_check
script:
- npx eslint --ignore-path .gitignore "**/*.js"
artifacts:
paths:
- .
backend_test:
stage: test
script:
- npm test
deploy:
stage: deploy
script:
- apt-get update -qq && apt-get install -qq zip
- zip -r application.zip * .[^.]*
- curl -X POST -u "$DEPLOYMENT_USERNAME:$DEPLOYMENT_PASSWORD" $DEPLOYMENT_ENDPOINT -T application.zip