2019-04-05 16:25:10 +04:00
|
|
|
image: romanov73/is:ng-tracker-container
|
2018-05-04 17:54:46 +04:00
|
|
|
|
|
|
|
variables:
|
|
|
|
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
|
|
|
|
|
2018-09-06 22:50:34 +04:00
|
|
|
before_script:
|
2019-04-05 17:41:31 +04:00
|
|
|
- service postgresql stop
|
|
|
|
- service postgresql start
|
2018-09-06 22:50:34 +04:00
|
|
|
- eval $(ssh-agent -s)
|
|
|
|
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
|
|
|
|
- mkdir -p ~/.ssh
|
|
|
|
- chmod 700 ~/.ssh
|
2019-03-28 16:53:31 +04:00
|
|
|
- git log --pretty="%cn;%cd;%s" > src/main/resources/commits.log
|
2018-09-06 22:50:34 +04:00
|
|
|
|
2018-05-04 17:54:46 +04:00
|
|
|
build:
|
|
|
|
stage: build
|
2018-09-06 22:50:34 +04:00
|
|
|
script: ./gradlew assemble
|
2018-05-04 17:54:46 +04:00
|
|
|
|
2019-04-05 17:35:17 +04:00
|
|
|
checkRun:
|
|
|
|
stage: test
|
|
|
|
script: ./gradlew bootRun -Dng-tracker.check-run=true
|
|
|
|
|
|
|
|
checkStyle:
|
|
|
|
stage: test
|
2019-04-17 17:46:06 +04:00
|
|
|
script: ./gradlew check -x test
|
2019-04-05 17:35:17 +04:00
|
|
|
|
2018-09-06 22:50:34 +04:00
|
|
|
deploy:
|
|
|
|
stage: deploy
|
|
|
|
script:
|
|
|
|
- sh deploy/gdccloud/deploy.sh
|
|
|
|
only:
|
2019-03-18 22:35:01 +04:00
|
|
|
- dev
|
2019-03-18 22:25:28 +04:00
|
|
|
environment:
|
|
|
|
name: staging
|
|
|
|
url: http://193.110.3.124:8080
|