Skip to content

Commit

Permalink
two separate builds for branches and tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Molly Lloyd committed Aug 15, 2017
1 parent a6e7730 commit 97e98ef
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 97e98ef

Please sign in to comment.