mirror of
https://github.com/ansible/awx.git
synced 2026-03-05 10:41:05 -03:30
only run shippable UI for devel and release branches
This commit is contained in:
committed by
Ryan Petrello
parent
f495615435
commit
c4a1dfc4e8
@@ -8,14 +8,19 @@ env:
|
|||||||
- AWX_BUILD_TARGET=ui-test-ci
|
- AWX_BUILD_TARGET=ui-test-ci
|
||||||
- AWX_BUILD_TARGET="flake8 jshint"
|
- AWX_BUILD_TARGET="flake8 jshint"
|
||||||
|
|
||||||
|
branches:
|
||||||
|
only:
|
||||||
|
- devel
|
||||||
|
- release_*
|
||||||
|
|
||||||
build:
|
build:
|
||||||
pre_ci:
|
pre_ci:
|
||||||
- docker build -t ansible/awx_devel -f tools/docker-compose/Dockerfile .
|
- docker build -t ansible/awx_devel -f tools/docker-compose/Dockerfile .
|
||||||
- docker tag ansible/awx_devel gcr.io/ansible-tower-engineering/awx_devel:${BASE_BRANCH:-latest}
|
- docker tag ansible/awx_devel gcr.io/ansible-tower-engineering/awx_devel:latest
|
||||||
pre_ci_boot:
|
pre_ci_boot:
|
||||||
options: "-v /awx_devel:/awx_devel"
|
options: "-v /awx_devel:/awx_devel"
|
||||||
ci:
|
ci:
|
||||||
- cp -R . /awx_devel
|
- cp -R . /awx_devel
|
||||||
- pip install -U docker-compose
|
- pip install -U docker-compose
|
||||||
- docker-compose -f tools/docker-compose/unit-tests/docker-compose.yml build --build-arg TAG=${BASE_BRANCH:-latest} unit-tests
|
- docker-compose -f tools/docker-compose/unit-tests/docker-compose-shippable.yml build --build-arg TAG=latest unit-tests
|
||||||
- docker-compose -f tools/docker-compose/unit-tests/docker-compose.yml run -v /awx_devel:/awx_devel unit-tests "make ${AWX_BUILD_TARGET}"
|
- docker-compose -f tools/docker-compose/unit-tests/docker-compose-shippable.yml run unit-tests "make ${AWX_BUILD_TARGET}"
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
ARG TAG=latest
|
FROM gcr.io/ansible-tower-engineering/awx_devel:latest
|
||||||
FROM gcr.io/ansible-tower-engineering/awx_devel:$TAG
|
|
||||||
|
|
||||||
# For UI tests
|
# For UI tests
|
||||||
RUN yum install -y bzip2 gcc-c++
|
RUN yum install -y bzip2 gcc-c++
|
||||||
|
|||||||
14
tools/docker-compose/unit-tests/docker-compose-shippable.yml
Normal file
14
tools/docker-compose/unit-tests/docker-compose-shippable.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
unit-tests:
|
||||||
|
build:
|
||||||
|
context: ../../../
|
||||||
|
dockerfile: tools/docker-compose/unit-tests/Dockerfile
|
||||||
|
image: gcr.io/ansible-tower-engineering/unit-test-runner:${GIT_BRANCH:-latest}
|
||||||
|
environment:
|
||||||
|
SWIG_FEATURES: "-cpperraswarn -includeall -I/usr/include/openssl"
|
||||||
|
TEST_DIRS: awx/main/tests/functional awx/main/tests/unit awx/conf/tests awx/sso/tests
|
||||||
|
command: ["make test"]
|
||||||
|
volumes:
|
||||||
|
- /awx_devel:/awx_devel
|
||||||
Reference in New Issue
Block a user