mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +01:00
ci - split integration tests into parallel firefox and chrome runs
This commit is contained in:
parent
ddc85354d3
commit
74502296ed
@ -15,12 +15,20 @@ workflows:
|
|||||||
- test-unit:
|
- test-unit:
|
||||||
requires:
|
requires:
|
||||||
- prep-deps-npm
|
- prep-deps-npm
|
||||||
- test-integration-mascara:
|
- test-integration-mascara-chrome:
|
||||||
|
requires:
|
||||||
|
- prep-deps-npm
|
||||||
|
- prep-scss
|
||||||
|
- test-integration-mascara-firefox:
|
||||||
requires:
|
requires:
|
||||||
- prep-deps-npm
|
- prep-deps-npm
|
||||||
- prep-deps-firefox
|
- prep-deps-firefox
|
||||||
- prep-scss
|
- prep-scss
|
||||||
- test-integration-flat:
|
- test-integration-flat-chrome:
|
||||||
|
requires:
|
||||||
|
- prep-deps-npm
|
||||||
|
- prep-scss
|
||||||
|
- test-integration-flat-firefox:
|
||||||
requires:
|
requires:
|
||||||
- prep-deps-npm
|
- prep-deps-npm
|
||||||
- prep-deps-firefox
|
- prep-deps-firefox
|
||||||
@ -99,7 +107,9 @@ jobs:
|
|||||||
name: test:coverage
|
name: test:coverage
|
||||||
command: npm run test:coverage
|
command: npm run test:coverage
|
||||||
|
|
||||||
test-integration-flat:
|
test-integration-flat-firefox:
|
||||||
|
environment:
|
||||||
|
browsers: ["Firefox"]
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/node:8-browsers
|
- image: circleci/node:8-browsers
|
||||||
steps:
|
steps:
|
||||||
@ -125,7 +135,28 @@ jobs:
|
|||||||
name: test:integration:flat
|
name: test:integration:flat
|
||||||
command: npm run test:flat
|
command: npm run test:flat
|
||||||
|
|
||||||
test-integration-mascara:
|
test-integration-flat-chrome:
|
||||||
|
environment:
|
||||||
|
browsers: ["Chrome"]
|
||||||
|
docker:
|
||||||
|
- image: circleci/node:8-browsers
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- restore_cache:
|
||||||
|
key: dependency-cache-{{ checksum "package-lock.json" }}
|
||||||
|
- run:
|
||||||
|
name: Get Scss Cache key
|
||||||
|
# this allows us to checksum against a whole directory
|
||||||
|
command: find ui/app/css -type f -exec md5sum {} \; | sort -k 2 > scss_checksum
|
||||||
|
- restore_cache:
|
||||||
|
key: scss-cache-{{ checksum "scss_checksum" }}
|
||||||
|
- run:
|
||||||
|
name: test:integration:flat
|
||||||
|
command: npm run test:flat
|
||||||
|
|
||||||
|
test-integration-mascara-firefox:
|
||||||
|
environment:
|
||||||
|
browsers: ["Firefox"]
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/node:8-browsers
|
- image: circleci/node:8-browsers
|
||||||
steps:
|
steps:
|
||||||
@ -150,3 +181,22 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: test:integration:mascara
|
name: test:integration:mascara
|
||||||
command: npm run test:mascara
|
command: npm run test:mascara
|
||||||
|
|
||||||
|
test-integration-mascara-chrome:
|
||||||
|
environment:
|
||||||
|
browsers: ["Chrome"]
|
||||||
|
docker:
|
||||||
|
- image: circleci/node:8-browsers
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- restore_cache:
|
||||||
|
key: dependency-cache-{{ checksum "package-lock.json" }}
|
||||||
|
- run:
|
||||||
|
name: Get Scss Cache key
|
||||||
|
# this allows us to checksum against a whole directory
|
||||||
|
command: find ui/app/css -type f -exec md5sum {} \; | sort -k 2 > scss_checksum
|
||||||
|
- restore_cache:
|
||||||
|
key: scss-cache-{{ checksum "scss_checksum" }}
|
||||||
|
- run:
|
||||||
|
name: test:integration:mascara
|
||||||
|
command: npm run test:mascara
|
||||||
|
@ -46,7 +46,9 @@ module.exports = function(config) {
|
|||||||
|
|
||||||
// start these browsers
|
// start these browsers
|
||||||
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
|
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
|
||||||
browsers: ['Chrome', 'Firefox'],
|
browsers: process.env.browsers ?
|
||||||
|
JSON.parse(process.env.browsers)
|
||||||
|
: ['Chrome', 'Firefox'],
|
||||||
|
|
||||||
// Continuous Integration mode
|
// Continuous Integration mode
|
||||||
// if true, Karma captures browsers, runs the tests and exits
|
// if true, Karma captures browsers, runs the tests and exits
|
||||||
|
Loading…
Reference in New Issue
Block a user