Commit c9fa2e4d authored by Pietro Braghieri's avatar Pietro Braghieri

Update .gitlab-ci.yml

parent cec775ae
......@@ -30,8 +30,9 @@ maven_build_and_test:
variables:
MAVEN_LOCAL_DISTRIBUTION_PRJ_REPOSITORY_URL: "file://$MAVEN_LOCAL_DISTRIBUTION_REPOSITORY_PRJ_DIR"
script:
- mkdir -p MAVEN_LOCAL_DISTRIBUTION_REPOSITORY_DIR
- "export DISPLAY=:0.0; mvn $MAVEN_CLI_OPTS -P Neon-Java8,DevelopmentUpdateSite,CI_Execution -Ddistribution.repository=$MAVEN_LOCAL_DISTRIBUTION_PRJ_REPOSITORY_URL clean deploy"
#- mkdir -p MAVEN_LOCAL_DISTRIBUTION_REPOSITORY_DIR
#- "export DISPLAY=:0.0; mvn $MAVEN_CLI_OPTS -P Neon-Java8,DevelopmentUpdateSite,CI_Execution -Ddistribution.repository=$MAVEN_LOCAL_DISTRIBUTION_PRJ_REPOSITORY_URL clean deploy"
- "export DISPLAY=:0.0; mvn $MAVEN_CLI_OPTS -P Neon-Java8,DevelopmentUpdateSite,CI_Execution clean install"
only:
- master
......@@ -54,9 +55,9 @@ maven_build_and_test:
- mkdir -p $UPDATE_SITE_MOUNT_DIR/$UPDATE_SITE_PROD_TARGET_DIR
- cp -r ${REPOSITORY_TO_COPY}/* $UPDATE_SITE_MOUNT_DIR/$UPDATE_SITE_PROD_TARGET_DIR
- chmod -R 0777 $UPDATE_SITE_MOUNT_DIR/$UPDATE_SITE_PROD_TARGET_DIR
- echo "Deploy to remote maven repository"
- cp -r ${MAVEN_LOCAL_DISTRIBUTION_REPOSITORY_DIR}/* $UPDATE_SITE_MOUNT_DIR/$MAVEN_REPOSITORY_DIR
- chmod -R 0777 $UPDATE_SITE_MOUNT_DIR/$MAVEN_REPOSITORY_DIR
#- echo "Deploy to remote maven repository"
#- cp -r ${MAVEN_LOCAL_DISTRIBUTION_REPOSITORY_DIR}/* $UPDATE_SITE_MOUNT_DIR/$MAVEN_REPOSITORY_DIR
#- chmod -R 0777 $UPDATE_SITE_MOUNT_DIR/$MAVEN_REPOSITORY_DIR
- fusermount -uz $UPDATE_SITE_MOUNT_DIR
only:
refs:
......
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