Better automated tests #62
1 changed files with 223 additions and 212 deletions
435
.drone.yml
435
.drone.yml
|
@ -3,253 +3,264 @@ kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: test_1.6
|
name: test_1.6
|
||||||
|
|
||||||
|
services:
|
||||||
|
- name: registry
|
||||||
|
image: registry
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build test
|
- name: build test
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
dockerfile: 1.6/Dockerfile
|
dockerfile: 1.6/Dockerfile
|
||||||
repo: mwalbeck/getgrav
|
repo: registry:5000/mwalbeck/getgrav
|
||||||
dry_run: true
|
registry: registry:5000
|
||||||
|
insecure: true
|
||||||
|
tags: "1.6-test"
|
||||||
|
|
||||||
|
- name: test
|
||||||
|
image: registry:5000/mwalbeck/getgrav:1.6-test
|
||||||
|
commands:
|
||||||
|
- echo "hello"
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
event:
|
event:
|
||||||
- pull_request
|
- pull_request
|
||||||
|
|
||||||
---
|
# ---
|
||||||
kind: pipeline
|
# kind: pipeline
|
||||||
type: docker
|
# type: docker
|
||||||
name: build_and_release_1.6
|
# name: build_and_release_1.6
|
||||||
|
|
||||||
steps:
|
# steps:
|
||||||
- name: determine tags
|
# - name: determine tags
|
||||||
image: mwalbeck/determine-docker-tags
|
# image: mwalbeck/determine-docker-tags
|
||||||
environment:
|
# environment:
|
||||||
VERSION_TYPE: "docker_env"
|
# VERSION_TYPE: "docker_env"
|
||||||
APP_NAME: "GRAV"
|
# APP_NAME: "GRAV"
|
||||||
DOCKERFILE_PATH: "1.6/Dockerfile"
|
# DOCKERFILE_PATH: "1.6/Dockerfile"
|
||||||
APP_ENV: ""
|
# APP_ENV: ""
|
||||||
CUSTOM_TAGS: ""
|
# CUSTOM_TAGS: ""
|
||||||
INCLUDE_MAJOR: "no"
|
# INCLUDE_MAJOR: "no"
|
||||||
|
|
||||||
- name: build and publish
|
# - name: build and publish
|
||||||
image: plugins/docker
|
# image: plugins/docker
|
||||||
settings:
|
# settings:
|
||||||
dockerfile: 1.6/Dockerfile
|
# dockerfile: 1.6/Dockerfile
|
||||||
username:
|
# username:
|
||||||
from_secret: dockerhub_username
|
# from_secret: dockerhub_username
|
||||||
password:
|
# password:
|
||||||
from_secret: dockerhub_password
|
# from_secret: dockerhub_password
|
||||||
repo: mwalbeck/getgrav
|
# repo: mwalbeck/getgrav
|
||||||
|
|
||||||
- name: notify
|
# - name: notify
|
||||||
image: plugins/matrix
|
# image: plugins/matrix
|
||||||
settings:
|
# settings:
|
||||||
homeserver: https://matrix.mwalbeck.org
|
# homeserver: https://matrix.mwalbeck.org
|
||||||
roomid:
|
# roomid:
|
||||||
from_secret: matrix_roomid
|
# from_secret: matrix_roomid
|
||||||
username:
|
# username:
|
||||||
from_secret: matrix_username
|
# from_secret: matrix_username
|
||||||
password:
|
# password:
|
||||||
from_secret: matrix_password
|
# from_secret: matrix_password
|
||||||
when:
|
# when:
|
||||||
status:
|
# status:
|
||||||
- success
|
# - success
|
||||||
- failure
|
# - failure
|
||||||
|
|
||||||
trigger:
|
# trigger:
|
||||||
branch:
|
# branch:
|
||||||
- master
|
# - master
|
||||||
event:
|
# event:
|
||||||
- push
|
# - push
|
||||||
|
|
||||||
---
|
# ---
|
||||||
kind: pipeline
|
# kind: pipeline
|
||||||
type: docker
|
# type: docker
|
||||||
name: test_1.6-prod
|
# name: test_1.6-prod
|
||||||
|
|
||||||
steps:
|
# steps:
|
||||||
- name: build test
|
# - name: build test
|
||||||
image: plugins/docker
|
# image: plugins/docker
|
||||||
settings:
|
# settings:
|
||||||
dockerfile: 1.6/Dockerfile.prod
|
# dockerfile: 1.6/Dockerfile.prod
|
||||||
repo: mwalbeck/getgrav
|
# repo: mwalbeck/getgrav
|
||||||
dry_run: true
|
# dry_run: true
|
||||||
|
|
||||||
trigger:
|
# trigger:
|
||||||
event:
|
# event:
|
||||||
- pull_request
|
# - pull_request
|
||||||
|
|
||||||
---
|
# ---
|
||||||
kind: pipeline
|
# kind: pipeline
|
||||||
type: docker
|
# type: docker
|
||||||
name: build_and_release_1.6-prod
|
# name: build_and_release_1.6-prod
|
||||||
|
|
||||||
steps:
|
# steps:
|
||||||
- name: determine tags
|
# - name: determine tags
|
||||||
image: mwalbeck/determine-docker-tags
|
# image: mwalbeck/determine-docker-tags
|
||||||
environment:
|
# environment:
|
||||||
VERSION_TYPE: "docker_env"
|
# VERSION_TYPE: "docker_env"
|
||||||
APP_NAME: "GRAV"
|
# APP_NAME: "GRAV"
|
||||||
DOCKERFILE_PATH: "1.6/Dockerfile.prod"
|
# DOCKERFILE_PATH: "1.6/Dockerfile.prod"
|
||||||
APP_ENV: "prod"
|
# APP_ENV: "prod"
|
||||||
CUSTOM_TAGS: ""
|
# CUSTOM_TAGS: ""
|
||||||
INCLUDE_MAJOR: "no"
|
# INCLUDE_MAJOR: "no"
|
||||||
|
|
||||||
- name: build and publish
|
# - name: build and publish
|
||||||
image: plugins/docker
|
# image: plugins/docker
|
||||||
settings:
|
# settings:
|
||||||
dockerfile: 1.6/Dockerfile.prod
|
# dockerfile: 1.6/Dockerfile.prod
|
||||||
username:
|
# username:
|
||||||
from_secret: dockerhub_username
|
# from_secret: dockerhub_username
|
||||||
password:
|
# password:
|
||||||
from_secret: dockerhub_password
|
# from_secret: dockerhub_password
|
||||||
repo: mwalbeck/getgrav
|
# repo: mwalbeck/getgrav
|
||||||
|
|
||||||
- name: notify
|
# - name: notify
|
||||||
image: plugins/matrix
|
# image: plugins/matrix
|
||||||
settings:
|
# settings:
|
||||||
homeserver: https://matrix.mwalbeck.org
|
# homeserver: https://matrix.mwalbeck.org
|
||||||
roomid:
|
# roomid:
|
||||||
from_secret: matrix_roomid
|
# from_secret: matrix_roomid
|
||||||
username:
|
# username:
|
||||||
from_secret: matrix_username
|
# from_secret: matrix_username
|
||||||
password:
|
# password:
|
||||||
from_secret: matrix_password
|
# from_secret: matrix_password
|
||||||
when:
|
# when:
|
||||||
status:
|
# status:
|
||||||
- success
|
# - success
|
||||||
- failure
|
# - failure
|
||||||
|
|
||||||
trigger:
|
# trigger:
|
||||||
branch:
|
# branch:
|
||||||
- master
|
# - master
|
||||||
event:
|
# event:
|
||||||
- push
|
# - push
|
||||||
|
|
||||||
---
|
# ---
|
||||||
kind: pipeline
|
# kind: pipeline
|
||||||
type: docker
|
# type: docker
|
||||||
name: test_1.7
|
# name: test_1.7
|
||||||
|
|
||||||
steps:
|
# steps:
|
||||||
- name: build test
|
# - name: build test
|
||||||
image: plugins/docker
|
# image: plugins/docker
|
||||||
settings:
|
# settings:
|
||||||
dockerfile: 1.7/Dockerfile
|
# dockerfile: 1.7/Dockerfile
|
||||||
repo: mwalbeck/getgrav
|
# repo: mwalbeck/getgrav
|
||||||
dry_run: true
|
# dry_run: true
|
||||||
|
|
||||||
trigger:
|
# trigger:
|
||||||
event:
|
# event:
|
||||||
- pull_request
|
# - pull_request
|
||||||
|
|
||||||
---
|
# ---
|
||||||
kind: pipeline
|
# kind: pipeline
|
||||||
type: docker
|
# type: docker
|
||||||
name: build_and_release_1.7
|
# name: build_and_release_1.7
|
||||||
|
|
||||||
steps:
|
# steps:
|
||||||
- name: determine tags
|
# - name: determine tags
|
||||||
image: mwalbeck/determine-docker-tags
|
# image: mwalbeck/determine-docker-tags
|
||||||
environment:
|
# environment:
|
||||||
VERSION_TYPE: "docker_env"
|
# VERSION_TYPE: "docker_env"
|
||||||
APP_NAME: "GRAV"
|
# APP_NAME: "GRAV"
|
||||||
DOCKERFILE_PATH: "1.7/Dockerfile"
|
# DOCKERFILE_PATH: "1.7/Dockerfile"
|
||||||
APP_ENV: ""
|
# APP_ENV: ""
|
||||||
CUSTOM_TAGS: "latest"
|
# CUSTOM_TAGS: "latest"
|
||||||
INCLUDE_MAJOR: "no"
|
# INCLUDE_MAJOR: "no"
|
||||||
|
|
||||||
- name: build and publish
|
# - name: build and publish
|
||||||
image: plugins/docker
|
# image: plugins/docker
|
||||||
settings:
|
# settings:
|
||||||
dockerfile: 1.7/Dockerfile
|
# dockerfile: 1.7/Dockerfile
|
||||||
username:
|
# username:
|
||||||
from_secret: dockerhub_username
|
# from_secret: dockerhub_username
|
||||||
password:
|
# password:
|
||||||
from_secret: dockerhub_password
|
# from_secret: dockerhub_password
|
||||||
repo: mwalbeck/getgrav
|
# repo: mwalbeck/getgrav
|
||||||
|
|
||||||
- name: notify
|
# - name: notify
|
||||||
image: plugins/matrix
|
# image: plugins/matrix
|
||||||
settings:
|
# settings:
|
||||||
homeserver: https://matrix.mwalbeck.org
|
# homeserver: https://matrix.mwalbeck.org
|
||||||
roomid:
|
# roomid:
|
||||||
from_secret: matrix_roomid
|
# from_secret: matrix_roomid
|
||||||
username:
|
# username:
|
||||||
from_secret: matrix_username
|
# from_secret: matrix_username
|
||||||
password:
|
# password:
|
||||||
from_secret: matrix_password
|
# from_secret: matrix_password
|
||||||
when:
|
# when:
|
||||||
status:
|
# status:
|
||||||
- success
|
# - success
|
||||||
- failure
|
# - failure
|
||||||
|
|
||||||
trigger:
|
# trigger:
|
||||||
branch:
|
# branch:
|
||||||
- master
|
# - master
|
||||||
event:
|
# event:
|
||||||
- push
|
# - push
|
||||||
|
|
||||||
---
|
# ---
|
||||||
kind: pipeline
|
# kind: pipeline
|
||||||
type: docker
|
# type: docker
|
||||||
name: test_1.7-prod
|
# name: test_1.7-prod
|
||||||
|
|
||||||
steps:
|
# steps:
|
||||||
- name: build test
|
# - name: build test
|
||||||
image: plugins/docker
|
# image: plugins/docker
|
||||||
settings:
|
# settings:
|
||||||
dockerfile: 1.7/Dockerfile.prod
|
# dockerfile: 1.7/Dockerfile.prod
|
||||||
repo: mwalbeck/getgrav
|
# repo: mwalbeck/getgrav
|
||||||
dry_run: true
|
# dry_run: true
|
||||||
|
|
||||||
trigger:
|
# trigger:
|
||||||
event:
|
# event:
|
||||||
- pull_request
|
# - pull_request
|
||||||
|
|
||||||
---
|
# ---
|
||||||
kind: pipeline
|
# kind: pipeline
|
||||||
type: docker
|
# type: docker
|
||||||
name: build_and_release_1.7-prod
|
# name: build_and_release_1.7-prod
|
||||||
|
|
||||||
steps:
|
# steps:
|
||||||
- name: determine tags
|
# - name: determine tags
|
||||||
image: mwalbeck/determine-docker-tags
|
# image: mwalbeck/determine-docker-tags
|
||||||
environment:
|
# environment:
|
||||||
VERSION_TYPE: "docker_env"
|
# VERSION_TYPE: "docker_env"
|
||||||
APP_NAME: "GRAV"
|
# APP_NAME: "GRAV"
|
||||||
DOCKERFILE_PATH: "1.7/Dockerfile.prod"
|
# DOCKERFILE_PATH: "1.7/Dockerfile.prod"
|
||||||
APP_ENV: "prod"
|
# APP_ENV: "prod"
|
||||||
CUSTOM_TAGS: "latest-prod"
|
# CUSTOM_TAGS: "latest-prod"
|
||||||
INCLUDE_MAJOR: "no"
|
# INCLUDE_MAJOR: "no"
|
||||||
|
|
||||||
- name: build and publish
|
# - name: build and publish
|
||||||
image: plugins/docker
|
# image: plugins/docker
|
||||||
settings:
|
# settings:
|
||||||
dockerfile: 1.7/Dockerfile.prod
|
# dockerfile: 1.7/Dockerfile.prod
|
||||||
username:
|
# username:
|
||||||
from_secret: dockerhub_username
|
# from_secret: dockerhub_username
|
||||||
password:
|
# password:
|
||||||
from_secret: dockerhub_password
|
# from_secret: dockerhub_password
|
||||||
repo: mwalbeck/getgrav
|
# repo: mwalbeck/getgrav
|
||||||
|
|
||||||
- name: notify
|
# - name: notify
|
||||||
image: plugins/matrix
|
# image: plugins/matrix
|
||||||
settings:
|
# settings:
|
||||||
homeserver: https://matrix.mwalbeck.org
|
# homeserver: https://matrix.mwalbeck.org
|
||||||
roomid:
|
# roomid:
|
||||||
from_secret: matrix_roomid
|
# from_secret: matrix_roomid
|
||||||
username:
|
# username:
|
||||||
from_secret: matrix_username
|
# from_secret: matrix_username
|
||||||
password:
|
# password:
|
||||||
from_secret: matrix_password
|
# from_secret: matrix_password
|
||||||
when:
|
# when:
|
||||||
status:
|
# status:
|
||||||
- success
|
# - success
|
||||||
- failure
|
# - failure
|
||||||
|
|
||||||
trigger:
|
# trigger:
|
||||||
branch:
|
# branch:
|
||||||
- master
|
# - master
|
||||||
event:
|
# event:
|
||||||
- push
|
# - push
|
||||||
|
|
Loading…
Reference in a new issue