Commit 46c9eff5 authored by Denis Konovalyenko's avatar Denis Konovalyenko

GitLab CI configuration cleaned up.

parent 4a8c4a7e
......@@ -16,25 +16,17 @@ cache:
- ${HOME}/.m2/repository/
- ${HOME}/target/
#before_script:
# - cat ${MAVEN_SETTINGS}
# - sed -i ${MAVEN_SETTINGS} -e "s/<username>.*<\/username>/<username>${MAVEN_REPO_USER}<\/username>/"
# - sed -i {$MAVEN_SETTINGS} -e "s/<password>.*<\/password>/<password>${MAVEN_REPO_PASS}<\/password>/"
# - sed -i "" -e "s/<username>.*<\/username>/<username>$MAVEN_REPO_USER<\/username>/" ${MAVEN_SETTINGS}
# - sed -i "" -e "s/<password>.*<\/password>/<password>$MAVEN_REPO_PASS<\/password>/" ${MAVEN_SETTINGS}
build:
stage: build
script:
- mvn test ${MAVEN_CLI_OPTS}
- mvn help:effective-settings ${MAVEN_CLI_OPTS}
snaphot:
stage: snapshot
script:
# - echo "${GPG_KEY_SECRET}" | gpg --allow-secret-key-import --import
# - gpg --list-keys
- mvn deploy ${MAVEN_CLI_OPTS} -DskipITs -Dmaven.test.skip=true --activate-profiles release --debug
- mvn deploy ${MAVEN_CLI_OPTS} -DskipITs -Dmaven.test.skip=true --activate-profiles release --quiet
# only:
# - dev
except:
......@@ -46,7 +38,7 @@ release:
script:
# - echo "${GPG_KEY_SECRET}" | gpg --allow-secret-key-import --import
# - gpg --list-keys
- mvn deploy ${MAVEN_CLI_OPTS} -DskipITs -Dmaven.test.skip=true --activate-profiles release --quite
- mvn deploy ${MAVEN_CLI_OPTS} -DskipITs -Dmaven.test.skip=true --activate-profiles release --quiet
only:
- tags
except:
......
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