You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ng-tracker/.gitlab-ci.yml

65 lines
1.2 KiB
YAML

image: romanov73/is:ng-tracker-container
6 years ago
cache:
key: "$CI_PROJECT_ID"
paths:
- .gradle/
variables:
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
6 years ago
before_script:
# - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
# - apt-get install openjdk-8-jdk git -y
6 years ago
- 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
6 years ago
6 years ago
build:
stage: build
6 years ago
script: ./gradlew assemble
6 years ago
cache:
key: "$CI_PROJECT_ID"
policy: push
paths:
6 years ago
- build
- .gradle
checkRun:
stage: test
script: ./gradlew bootRun -Dng-tracker.check-run=true
cache:
key: "$CI_PROJECT_ID"
policy: push
paths:
- build
- .gradle
checkStyle:
stage: test
script: ./gradlew check
cache:
key: "$CI_PROJECT_ID"
policy: push
paths:
- build
- .gradle
6 years ago
deploy:
stage: deploy
script:
- sh deploy/gdccloud/deploy.sh
only:
- dev
6 years ago
cache:
key: "$CI_PROJECT_ID"
policy: pull
paths:
- build
5 years ago
- .gradle
environment:
name: staging
url: http://193.110.3.124:8080