Skip to content
This repository has been archived by the owner on Oct 28, 2019. It is now read-only.

Commit

Permalink
馃懛 Improve CI for faster build
Browse files Browse the repository at this point in the history
  • Loading branch information
motss committed Jul 15, 2019
1 parent fd40d0a commit e22a796
Showing 1 changed file with 12 additions and 40 deletions.
52 changes: 12 additions & 40 deletions .circleci/config.yml
Expand Up @@ -63,28 +63,20 @@ jobs:
name: Test
command: npx -p web-component-tester -- npm run test:ci

test_ie_11:
# According to the resources below, Edge 15 is the oldest supported MS Edge.
# https://en.wikipedia.org/wiki/Microsoft_Edge
# https://reports.adduplex.com/#/r/2019-04
# https://en.wikipedia.org/wiki/Windows_10_version_history
test_edge_ie:
<<: *defaults
steps:
- attach_workspace:
at: ~/really-code-configurator
- run:
name: Test (Internet Explorer 11)
name: Test (Edge 17, 15, Internet Explorer 11)
command: |
if [ -z "${CIRCLE_PULL_REQUEST}" ] && [ -z "$(git describe --exact-match HEAD)" ] && [ -z "$(git log --format=%B -n 1 | grep -iE '^[0-9]+[.]{1,}[0-9]+[.]{1,}[0-9]+$')" ]; then
npx -p web-component-tester -- npm run test:sl -- -s 'windows 7/internet explorer@11';
fi
test_edge:
<<: *defaults
steps:
- attach_workspace:
at: ~/really-code-configurator
- run:
name: Test (Edge 17, 13)
command: |
if [ -z "${CIRCLE_PULL_REQUEST}" ] && [ -z "$(git describe --exact-match HEAD)" ] && [ -z "$(git log --format=%B -n 1 | grep -iE '^[0-9]+[.]{1,}[0-9]+[.]{1,}[0-9]+$')" ]; then
npx -p web-component-tester -- npm run test:sl -- -s 'windows 10/microsoftedge@17' -s 'windows 10/microsoftedge@13';
npx -p web-component-tester -- npm run test:sl -- -s 'windows 10/microsoftedge@17' -s 'windows 10/microsoftedge@15' -s 'windows 10/internet explorer@11';
fi
test_safari:
Expand All @@ -99,28 +91,16 @@ jobs:
npx -p web-component-tester -- npm run test:sl -- -s 'macos 10.12/safari@10.1' -s 'os x 10.11/safari@9';
fi
test_chrome:
<<: *defaults
steps:
- attach_workspace:
at: ~/really-code-configurator
- run:
name: Test (Chrome 69, 41)
command: |
if [ -z "${CIRCLE_PULL_REQUEST}" ] && [ -z "$(git describe --exact-match HEAD)" ] && [ -z "$(git log --format=%B -n 1 | grep -iE '^[0-9]+[.]{1,}[0-9]+[.]{1,}[0-9]+$')" ]; then
npx -p web-component-tester -- npm run test:sl -- -s 'windows 10/chrome@69' -s 'Linux/chrome@41';
fi
test_firefox:
test_old_firefox_chrome:
<<: *defaults
steps:
- attach_workspace:
at: ~/really-code-configurator
- run:
name: Test (Firefox 63, 62)
name: Test (Firefox 62, Chrome 69)
command: |
if [ -z "${CIRCLE_PULL_REQUEST}" ] && [ -z "$(git describe --exact-match HEAD)" ] && [ -z "$(git log --format=%B -n 1 | grep -iE '^[0-9]+[.]{1,}[0-9]+[.]{1,}[0-9]+$')" ]; then
npx -p web-component-tester -- npm run test:sl -- -s 'windows 10/firefox@63' -s 'macos 10.14/firefox@62';
npx -p web-component-tester -- npm run test:sl -- -s 'macos 10.14/firefox@62' -s 'windows 10/chrome@69';
fi
workflows:
Expand All @@ -132,22 +112,14 @@ workflows:
requires:
- build

- test_ie_11:
requires:
- build

- test_edge:
- test_edge_ie:
requires:
- build

- test_safari:
requires:
- build

- test_chrome:
requires:
- build

- test_firefox:
- test_old_firefox_chrome:
requires:
- build

0 comments on commit e22a796

Please sign in to comment.