Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- kind: pipeline
- type: docker
- name: default
- steps:
- - name: restore-cache
- image: drillster/drone-volume-cache
- settings:
- restore: true
- mount:
- - /drone/src/.m2
- volumes:
- - name: cache
- path: /cache
- - name: Directory track
- image: alpine
- commands:
- - pwd
- - ls -la
- - name: Test With Maven
- image: maven:3.6.1
- environment:
- TEST_MINIO_ACCESS_KEY:
- from_secret: TEST_MINIO_ACCESS_KEY
- TEST_MINIO_SECRET_KEY:
- from_secret: TEST_MINIO_SECRET_KEY
- TEST_MINIO_IS_SSL: "true"
- TEST_MINIO_PORT: "443"
- TEST_MINIO_HOSTNAME: "storage.googleapis.com"
- TEST_DATABASE_NAME: faroseacademy_webapi
- TEST_DATABASE_USERNAME: root
- TEST_DATABASE_PASSWORD: "123456"
- TEST_DATABASE_HOSTNAME: mysql
- TEST_DATABASE_PORT: "3306"
- TEST_MONGO_HOSTNAME: mongo
- TEST_MONGO_PORT: "27017"
- commands:
- - export MAVEN_HOME=/drone/src/.m2
- - export M2_HOME=/drone/src/.m2
- - echo $(ls -lah /drone/src/.m2)
- - echo $(ls -lah /drone/src/.m2/repository)
- - mvn test -Dmaven.repo.local=/drone/src/.m2/repository
- - echo $(ls -lah /drone/src/.m2)
- - echo $(ls -lah /drone/src/.m2/repository)
- - name: rebuild cache
- image: drillster/drone-volume-cache
- volumes:
- - name: cache
- path: /cache
- rebuild: true
- commands:
- - echo $(ls -lah /drone/src)
- - echo $(ls -lah /drone/src/.m2)
- settings:
- rebuild: true
- mount:
- - /drone/src/.m2
- services:
- - name: mysql
- image: mysql:8
- environment:
- MYSQL_ROOT_PASSWORD: "123456"
- MYSQL_DATABASE: "faroseacademy_webapi"
- - name: mongo
- image: mongo:4
- environment:
- MONGO_INITDB_DATABASE: 'faroseacademy_webapi'
- trigger:
- branch:
- - master
- - integration
- event:
- - push
- - pull_request
- volumes:
- - name: cache
- host:
- path: /tmp/cache
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement