ci: make macOS CI faster (#16766)
* ci: cache brew update result * ci: checkout and sync the macOS build on a linux machine for speed
This commit is contained in:
parent
fc06458038
commit
17c240a639
3 changed files with 57 additions and 5 deletions
|
@ -1,8 +1,15 @@
|
|||
const { expect } = require('chai')
|
||||
const { remote } = require('electron')
|
||||
const { nextVersion } = require('../script/bump-version')
|
||||
const utils = require('../script/lib/version-utils')
|
||||
|
||||
describe('bump-version utils', () => {
|
||||
const isCi = remote.getGlobal('isCi')
|
||||
|
||||
// On macOS Circle CI we don't have a real git environment due to running
|
||||
// gclient sync on a linux machine. These tests therefore don't run as expected
|
||||
const describeFn = (isCi && process.platform === 'darwin') ? describe.skip : describe
|
||||
|
||||
describeFn('bump-version utils', () => {
|
||||
it('makes a version with a period delimeter', () => {
|
||||
const components = {
|
||||
major: 2,
|
||||
|
@ -39,7 +46,7 @@ describe('bump-version utils', () => {
|
|||
})
|
||||
})
|
||||
|
||||
describe('bump-version script', () => {
|
||||
describeFn('bump-version script', () => {
|
||||
const nightlyPattern = /[0-9.]*(-nightly.(\d{4})(\d{2})(\d{2}))$/g
|
||||
const betaPattern = /[0-9.]*(-beta[0-9.]*)/g
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue