mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 23:52:06 +00:00
Set up CI with Azure Pipelines (#4190)
This commit is contained in:
parent
46103e72ea
commit
79eb9c8010
@ -1,7 +1,7 @@
|
||||
<p align="center"><img align="center" src="http://imgur.com/V4LtoII.png"/></p>
|
||||
<p align="center">
|
||||
<a href="https://circleci.com/gh/nuxt/nuxt.js"><img src="https://badgen.net/circleci/github/nuxt/nuxt.js/dev" alt="Build Status"></a>
|
||||
<a href="https://ci.appveyor.com/project/nuxt/nuxt-js"><img src="https://badgen.net/appveyor/ci/nuxt/nuxt-js/dev" alt="Windows Build Status"></a>
|
||||
<a href="https://dev.azure.com/nuxt/nuxt.js/_build/latest?definitionId=1"><img src="https://dev.azure.com/nuxt/nuxt.js/_apis/build/status/nuxt.js" alt="Azure Build Status"></a>
|
||||
<a href="https://codecov.io/gh/nuxt/nuxt.js"><img src="https://badgen.net/codecov/c/github/nuxt/nuxt.js/dev" alt="Coverage Status"></a>
|
||||
<a href="https://www.npmjs.com/package/nuxt"><img src="https://badgen.net/npm/dm/nuxt" alt="Downloads"></a>
|
||||
<a href="https://www.npmjs.com/package/nuxt"><img src="https://badgen.net/npm/v/nuxt" alt="Version"></a>
|
||||
|
38
appveyor.yml
38
appveyor.yml
@ -1,38 +0,0 @@
|
||||
# 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
|
32
azure-pipelines.yml
Normal file
32
azure-pipelines.yml
Normal file
@ -0,0 +1,32 @@
|
||||
# Node.js
|
||||
# Build a general Node.js project with npm.
|
||||
# Add steps that analyze code, save build artifacts, deploy, and more:
|
||||
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
|
||||
|
||||
pool:
|
||||
vmImage: 'vs2017-win2016'
|
||||
|
||||
trigger:
|
||||
- dev
|
||||
|
||||
steps:
|
||||
- task: NodeTool@0
|
||||
inputs:
|
||||
versionSpec: '^10.10.0'
|
||||
displayName: 'Install Node.js'
|
||||
|
||||
- script: |
|
||||
yarn
|
||||
displayName: 'Install dependencies'
|
||||
|
||||
- script: |
|
||||
yarn build
|
||||
displayName: 'Build Nuxt'
|
||||
|
||||
- script: |
|
||||
yarn test:fixtures -w=2
|
||||
displayName: 'Test: Build Fixtures'
|
||||
|
||||
- script: |
|
||||
yarn test:unit -w=2
|
||||
displayName: 'Test: Run unit tests'
|
2
test/fixtures/cli/cli.build.test.js
vendored
2
test/fixtures/cli/cli.build.test.js
vendored
@ -6,7 +6,7 @@ const execify = promisify(exec)
|
||||
const rootDir = __dirname
|
||||
const nuxtBin = resolve(__dirname, '../../../packages/cli/bin/nuxt.js')
|
||||
|
||||
describe.skip.appveyor('cli build', () => {
|
||||
describe('cli build', () => {
|
||||
test('nuxt build', async () => {
|
||||
const { stdout } = await execify(`node ${nuxtBin} build ${rootDir} -c cli.build.config.js`)
|
||||
|
||||
|
2
test/fixtures/cli/cli.gen.test.js
vendored
2
test/fixtures/cli/cli.gen.test.js
vendored
@ -6,7 +6,7 @@ const execify = promisify(exec)
|
||||
const rootDir = __dirname
|
||||
const nuxtBin = resolve(__dirname, '../../../packages/cli/bin/nuxt.js')
|
||||
|
||||
describe.skip.appveyor('cli generate', () => {
|
||||
describe('cli generate', () => {
|
||||
test('nuxt generate', async () => {
|
||||
const { stdout } = await execify(`node -r esm ${nuxtBin} generate ${rootDir} -c cli.gen.config.js`)
|
||||
|
||||
|
@ -20,7 +20,7 @@ const close = async (nuxtInt) => {
|
||||
}
|
||||
}
|
||||
|
||||
describe.skip.appveyor('cli', () => {
|
||||
describe('cli', () => {
|
||||
test('nuxt dev', async () => {
|
||||
let stdout = ''
|
||||
const env = process.env
|
||||
|
@ -1,7 +1,3 @@
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user