From e922541cc52944650c1997d38546ddd4554d370d Mon Sep 17 00:00:00 2001 From: Miguel de la Cruz Date: Fri, 6 Mar 2020 17:59:47 +0100 Subject: [PATCH] Add an app-layers check to the server's CI (#14015) Co-authored-by: mattermod --- .circleci/config.yml | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 5e660d03f8..a16e0c4d67 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -56,6 +56,19 @@ jobs: # make i18n-extract # diff /tmp/en.json i18n/en.json + check-app-layers: + docker: + - image: mattermost/mattermost-build-server:oct-18-2019 + working_directory: ~/mattermost + steps: + - attach_workspace: + at: ~/mattermost/ + - run: + command: | + cd mattermost-server + make app-layers + if [[ -n $(git status --porcelain) ]]; then echo "Please update the app layers using make app-layers"; exit 1; fi + build: docker: - image: mattermost/mattermost-build-server:oct-18-2019 @@ -342,9 +355,12 @@ workflows: # - check-i18n: # requires: # - setup - - build: + - check-app-layers: requires: - setup + - build: + requires: + - check-app-layers - upload-s3-sha: context: mattermost-ci-pr-builds-s3 requires: @@ -362,16 +378,16 @@ workflows: dbdriver: mysql dbsource: "mmuser:mostest@tcp(mysql:3306)/mattermost_test?charset=utf8mb4,utf8" requires: - - setup + - check-app-layers - test: name: test-postgres dbdriver: postgres dbsource: "postgres://mmuser:mostest@postgres:5432/mattermost_test?sslmode=disable&connect_timeout=10" requires: - - setup + - check-app-layers - test-schema: requires: - - setup + - check-app-layers - trigger-ee-tests: context: matterbuild-circleci-token requires: