Skip to content

Commit

Permalink
ci: revert travis windows changes
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkdo committed Oct 23, 2018
1 parent 1cb7ce5 commit 811234e
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 3 deletions.
31 changes: 31 additions & 0 deletions appveyor.yml
@@ -0,0 +1,31 @@
# Test against the latest version of this Node.js version
environment:
nodejs_version: "Current"
cache:
- 'node_modules -> yarn.lock'
- '%LOCALAPPDATA%\\Yarn -> yarn.lock'
image: Visual Studio 2017
shallow_clone: true
# Install scripts. (runs after repo cloning)
install:
# Get the latest stable version of Node.js or io.js
- ps: Install-Product node $env:nodejs_version
# Install modules
- yarn install
# Link dependencies
- yarn lerna link
# Build packages
- yarn build
# Post-install test scripts.
test_script:
# Output useful info for debugging.
- node --version
# - npm --version
- yarn --version
# run tests
- yarn test:fixtures -w=2
- yarn test:unit -w=2
# Don't actually build.
build: off
# Do not build feature branch with open Pull Requests
skip_branch_with_pr: true
2 changes: 1 addition & 1 deletion test/fixtures/cli/cli.build.test.js
Expand Up @@ -6,7 +6,7 @@ const execify = promisify(exec)
const rootDir = __dirname
const nuxtBin = resolve(__dirname, '../../../packages/cli/bin/nuxt.js')

describe('cli build', () => {
describe.skip.appveyor('cli build', () => {
test('nuxt build', async () => {
const { stdout } = await execify(`node ${nuxtBin} build ${rootDir} -c cli.build.config.js`)

Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/cli/cli.gen.test.js
Expand Up @@ -6,7 +6,7 @@ const execify = promisify(exec)
const rootDir = __dirname
const nuxtBin = resolve(__dirname, '../../../packages/cli/bin/nuxt.js')

describe('cli generate', () => {
describe.skip.appveyor('cli generate', () => {
test('nuxt generate', async () => {
const { stdout } = await execify(`node -r esm ${nuxtBin} generate ${rootDir} -c cli.gen.config.js`)

Expand Down
2 changes: 1 addition & 1 deletion test/unit/cli.test.js
Expand Up @@ -20,7 +20,7 @@ const close = async (nuxtInt) => {
}
}

describe('cli', () => {
describe.skip.appveyor('cli', () => {
test('nuxt dev', async () => {
let stdout = ''
const env = process.env
Expand Down
4 changes: 4 additions & 0 deletions test/utils/setup.js
@@ -1,3 +1,7 @@
const isAppveyor = !!process.env.APPVEYOR
describe.skip.appveyor = isAppveyor ? describe.skip : describe
test.skip.appveyor = isAppveyor ? test.skip : test

const isWin = process.platform === 'win32'
describe.skip.win = isWin ? describe.skip : describe
test.skip.win = isWin ? test.skip : test
Expand Down

0 comments on commit 811234e

Please sign in to comment.