Newer
Older
# FTP_* variables are defined in the CI condiguration of the gitlab.

Radek Ošlejšek
committed

Radek Ošlejšek
committed
build:
stage: build
script:
- mvn clean install -B -DskipTests -Dcheckstyle.fail=false
- application/target/$PROJECT_ARTIFACT_ID-*.zip

Radek Ošlejšek
committed
script:
- mvn test -B -Dcheckstyle.fail=false

Radek Ošlejšek
committed
tags:
- shared-fi
# - if: '$CI_COMMIT_BRANCH == "master"'
# changes:
# - VERSION.txt
# when: never
script:
- apt-get update -qq && apt-get install -y -qq lftp
#- lftp -c "set ftp:ssl-allow no; open -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOST; mirror -Rnev $CI_PROJECT_DIR/application/target ./$FTP_TARGET_DIR --ignore-time --parallel=10 --exclude-glob .git* --exclude .git/"
- lftp -c "set ftp:ssl-allow yes; set ssl:verify-certificate false; open -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOST; cd $FTP_TARGET_DIR; mput -c $CI_PROJECT_DIR/application/target/*.zip"
# rules:
# - if: '$CI_COMMIT_BRANCH == "master"'
# changes:
# - VERSION.txt
# - if: '$CI_COMMIT_BRANCH'
# when: never