mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-05-03 10:32:10 -05:00
ci: attempt to fix chromedriver for Appveyor
This commit is contained in:
+3
-1
@@ -3,6 +3,7 @@ environment:
|
||||
|
||||
install:
|
||||
- ps: Install-Product node $env:nodejs_version
|
||||
- yarn patch-chromedriver
|
||||
- yarn --network-timeout 600000
|
||||
|
||||
test_script:
|
||||
@@ -10,7 +11,8 @@ test_script:
|
||||
- node --version
|
||||
- yarn --version
|
||||
- yarn test
|
||||
- cd "packages/@vue/cli-ui" && yarn test
|
||||
# ui tests temporarily disabled due to Cypress 3.0 issue on windows
|
||||
# - cd "packages/@vue/cli-ui" && yarn test
|
||||
|
||||
cache:
|
||||
- node_modules -> yarn.lock
|
||||
|
||||
+2
-1
@@ -15,7 +15,8 @@
|
||||
"boot": "node scripts/bootstrap.js",
|
||||
"release": "yarn clean && node scripts/release.js",
|
||||
"docs": "vuepress dev docs",
|
||||
"docs:build": "vuepress build docs"
|
||||
"docs:build": "vuepress build docs",
|
||||
"patch-chromedriver": "node scripts/patchChromedriver.js"
|
||||
},
|
||||
"gitHooks": {
|
||||
"pre-commit": "lint-staged",
|
||||
|
||||
@@ -14,7 +14,7 @@ module.exports = deepmerge({
|
||||
host: '127.0.0.1',
|
||||
port: 4444,
|
||||
cli_args: {
|
||||
'webdriver.chrome.driver': process.env.APPVEYOR ? '' : require('chromedriver').path
|
||||
'webdriver.chrome.driver': require('chromedriver').path
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -2,7 +2,8 @@ jest.setTimeout(process.env.APPVEYOR ? 850000 : 50000)
|
||||
|
||||
const create = require('@vue/cli-test-utils/createTestProject')
|
||||
|
||||
// temporarily disabled on AppVeyor due to upstream issue
|
||||
// temporarily disabled on AppVeyor
|
||||
// due to Cypress upstream issue
|
||||
// https://github.com/cypress-io/cypress/issues/1841
|
||||
if (!process.env.APPVEYOR) {
|
||||
test('cypress', async () => {
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
// Appveyor current only ships Chrome 65
|
||||
// which is no longer supported by the latest version of Chromedriver.
|
||||
|
||||
const fs = require('fs')
|
||||
const path = require('path')
|
||||
const pkg = require('../package.json')
|
||||
|
||||
pkg.resolutions.chromedriver = '2.38.0'
|
||||
|
||||
fs.writeFileSync(path.resolve(__dirname, '../package.json'), JSON.stringify(pkg, null, 2))
|
||||
Reference in New Issue
Block a user