From 97e98efa2ad75fd6f37ae4bd596412dd9442dbda Mon Sep 17 00:00:00 2001 From: Molly Lloyd Date: Mon, 14 Aug 2017 21:02:12 -0400 Subject: [PATCH] two separate builds for branches and tags --- .circleci/config.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 8ca7bac5fe5..3177cf592b1 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -7,16 +7,15 @@ workflows: - build: filters: tags: - only: /v[0-9]+.[0-9]+.[0-9]+(-dev)?/ - - release: - requires: - - build + ignore: /v[0-9]+.[0-9]+.[0-9]+(-dev)?/ + - build-and-release: filters: tags: only: /v[0-9]+.[0-9]+.[0-9]+(-dev)?/ branches: ignore: /.*/ + jobs: build: docker: @@ -44,7 +43,7 @@ jobs: path: "test/integration/render-tests/index.html" - store_artifacts: path: "test/integration/query-tests/index.html" - release: + build-and-release: docker: - image: mbgl/ci:r4-linux-gl-js working_directory: ~/mapbox-gl-js @@ -62,8 +61,13 @@ jobs: - '.eslintcache' - 'node_modules' - run: - name: build-release - command: yarn run build-min + name: run tests + command: | + bash ./.circleci/test.sh + - store_artifacts: + path: "test/integration/render-tests/index.html" + - store_artifacts: + path: "test/integration/query-tests/index.html" - run: name: deploy when: on_success