2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2024-12-23 10:38:58 +00:00

test: separate builds for develop branch and PR

Develop branch jobs pull edge images and test
PR jobs build images and test
This commit is contained in:
Revant Nandgaonkar 2020-05-01 19:42:19 +05:30
parent 4f12e61a7a
commit da4f65438d

View File

@ -110,8 +110,8 @@ jobs:
- ./travis.py erpnext --nginx --git-version 11
- ./travis.py erpnext --nginx --tag v11 --tag-only
- ./travis.py erpnext --nginx --tag version-11 --tag-only
- stage: "Build and test develop branch"
if: type = pull_request OR branch = develop
- stage: "Build and test edge images"
if: type = pull_request
before_install:
- sudo apt-get update && sudo apt-get -y install docker-compose
script:
@ -121,3 +121,9 @@ jobs:
- docker build -t frappe/frappe-nginx:develop -f build/frappe-nginx/Dockerfile .
- docker build -t frappe/erpnext-nginx:edge -f build/erpnext-nginx/Dockerfile .
- ./tests/docker-test.sh
- stage: "Pull and test edge images"
if: branch = develop AND type != pull_request
before_install:
- sudo apt-get update && sudo apt-get -y install docker-compose
script:
- ./tests/docker-test.sh