stages: - test - deploy # Define a job that runs to check PHP syntax php_syntax_check: stage: test image: php:latest script: - echo "Checking PHP syntax..." - find . -name "*.php" -print0 | xargs -0 -n1 php -l ftp_upload: stage: deploy variables: timftpuser: $timftpuser timftphost: $timftphost timftppassword: $timftppassword projectftp: $projectftp script: - apt-get update -qy - apt-get install -y lftp - | lftp -u "$timftpuser","$timftppassword" "$timftphost" <