committed by
GitHub
7 changed files with 72 additions and 58 deletions
@ -1,25 +0,0 @@ |
|||
version: 2 |
|||
jobs: |
|||
build: |
|||
docker: |
|||
- image: circleci/node:latest |
|||
steps: |
|||
- checkout |
|||
- run: npm install |
|||
- run: npm run lint |
|||
- run: npm run build |
|||
test: |
|||
docker: |
|||
- image: circleci/node:latest-browsers |
|||
steps: |
|||
- checkout |
|||
- run: npm install |
|||
- run: |
|||
command: npm run test:all |
|||
no_output_timeout: 30m |
|||
workflows: |
|||
version: 2 |
|||
build_and_test: |
|||
jobs: |
|||
- build |
|||
- test |
|||
@ -1,26 +0,0 @@ |
|||
# Test against the latest version of this Node.js version |
|||
environment: |
|||
nodejs_version: '10' |
|||
|
|||
# this is how to allow failing jobs in the matrix |
|||
matrix: |
|||
fast_finish: true # set this flag to immediately finish build once one of the jobs fails. |
|||
|
|||
# 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 |
|||
- npm install |
|||
# Output useful info for debugging. |
|||
- node --version |
|||
- npm --version |
|||
|
|||
# Post-install test scripts. |
|||
test_script: |
|||
- npm run lint |
|||
- npm run test:all |
|||
- npm run build |
|||
|
|||
# Don't actually build. |
|||
build: off |
|||
@ -0,0 +1,69 @@ |
|||
# 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 |
|||
name: ant design pro |
|||
|
|||
trigger: |
|||
- master |
|||
|
|||
resources: |
|||
repositories: |
|||
- repository: self |
|||
fetchDepth: 1 |
|||
|
|||
jobs: |
|||
- job: lintAndBuild |
|||
|
|||
pool: |
|||
vmImage: 'Ubuntu-16.04' |
|||
|
|||
steps: |
|||
- script: yarn install |
|||
displayName: install |
|||
- script: npm run lint |
|||
displayName: lint |
|||
- script: npm run build |
|||
displayName: build |
|||
|
|||
- job: test |
|||
pool: |
|||
vmImage: 'Ubuntu-16.04' |
|||
|
|||
container: |
|||
image: circleci/node:latest-browsers |
|||
options: '-u root' |
|||
|
|||
steps: |
|||
- script: yarn install |
|||
displayName: install |
|||
- script: npm run test:all |
|||
displayName: test |
|||
|
|||
- job: Windows |
|||
pool: |
|||
vmImage: 'vs2017-win2016' |
|||
steps: |
|||
- task: NodeTool@0 |
|||
inputs: |
|||
versionSpec: '11.x' |
|||
- script: yarn install |
|||
displayName: install |
|||
- script: npm run lint |
|||
displayName: lint |
|||
- script: npm run build |
|||
displayName: build |
|||
|
|||
- job: MacOS |
|||
pool: |
|||
vmImage: 'macOS-10.13' |
|||
steps: |
|||
- task: NodeTool@0 |
|||
inputs: |
|||
versionSpec: '11.x' |
|||
- script: yarn install |
|||
displayName: install |
|||
- script: npm run lint |
|||
displayName: lint |
|||
- script: npm run build |
|||
displayName: build |
|||
Loading…
Reference in new issue