ng-tracker/.gitlab-ci.yml

36 lines
720 B
YAML
Raw Permalink Normal View History

2019-04-23 12:38:15 +04:00
image: romanov73/is:ng-tracker-container-11
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:
- service postgresql stop
- service postgresql start
2019-04-23 12:46:17 +04:00
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- 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
checkRun:
stage: test
script: ./gradlew bootRun -Dng-tracker.check-run=true
checkStyle:
stage: test
script: ./gradlew check -x test
2018-05-04 17:54:46 +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