diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index c18b22b64cb0..000000000000 --- a/.travis.yml +++ /dev/null @@ -1,38 +0,0 @@ -sudo: required -services: - - docker -language: node_js -cache: - yarn: true - directories: - - node_modules -notifications: - email: false -node_js: - - '11' - - '10' - - '8' - - '6' -install: - # This also runs a build as part of the postinstall - # bootstrap - - yarn --ignore-engines --frozen-lockfile -script: - # TODO: Fix this check - # - yarn workspace eslint-plugin docs:check - - yarn test - - yarn global add codecov -after_success: - - codecov -branches: - only: - - master - -jobs: - include: - - stage: Code and Commit Formatting and Integration Tests - node_js: "11" - script: - - commitlint-travis - - yarn check-format - - yarn integration-tests diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 000000000000..63512b1f85ad --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,62 @@ +trigger: + - master + +jobs: + - job: primary_code_validation_and_tests + displayName: Primary code validation and tests + pool: + vmImage: 'Ubuntu-16.04' + steps: + - task: NodeTool@0 + inputs: + versionSpec: 11 + displayName: 'Install Node.js 11' + + - script: | + # This also runs a build as part of the postinstall + # bootstrap + yarn --ignore-engines --frozen-lockfile + + - script: | + yarn check-format + displayName: 'Check code formatting' + + - script: | + yarn test + displayName: 'Run unit tests' + + - script: | + yarn integration-tests + displayName: 'Run integrations tests' + + - script: | + npx codecov -t $(CODECOV_TOKEN) + displayName: 'Publish code coverage report' + + - job: unit_tests_on_other_node_versions + displayName: Run unit tests on other Node.js versions + pool: + vmImage: 'Ubuntu-16.04' + strategy: + maxParallel: 3 + matrix: + node_10_x: + node_version: 10.x + node_8_x: + node_version: 8.x + node_6_x: + node_version: 6.x + steps: + - task: NodeTool@0 + inputs: + versionSpec: $(node_version) + displayName: 'Install Node.js $(node_version)' + + - script: | + # This also runs a build as part of the postinstall + # bootstrap + yarn --ignore-engines --frozen-lockfile + + - script: | + yarn test + displayName: 'Run unit tests'