Skip to content

Commit

Permalink
Separate CI tasks and fix cwd
Browse files Browse the repository at this point in the history
  • Loading branch information
cla-test-user committed Jul 29, 2019
1 parent e8c417d commit 58bb3d4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 4 additions & 2 deletions azure-pipelines-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,10 @@ jobs:
# https://yarnpkg.com/lang/en/docs/cli/install/#toc-yarn-install-frozen-lockfile
- script: yarn --frozen-lockfile
displayName: 'Install dependencies'
- script: yarn test-ci
displayName: 'Run tests'
- script: yarn test:unit
displayName: 'Run unit tests'
- script: yarn test:integration-ci
displayName: 'Run integration tests'
- script: yarn flow
displayName: 'Type check with Flow'
- script: yarn lint
Expand Down
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@
"precommit": "lint-staged",
"prepublishOnly": "yarn build",
"test:unit": "cross-env NODE_ENV=test mocha --config unit.mocharc.json",
"test:integration": "(cd packages/core/integration-tests && yarn test) && mocha --config integration.mocharc.json",
"test:integration-ci": "(cd packages/core/integration-tests && yarn test-ci) && mocha --config integration.mocharc.json",
"test": "yarn test:unit && yarn test:integration",
"test-ci": "yarn test:unit && yarn test:integration-ci"
"test:integration": "mocha --config integration.mocharc.json && (pushd packages/core/integration-tests && yarn test && popd)",
"test:integration-ci": "mocha --config integration.mocharc.json && (pushd packages/core/integration-tests && yarn test-ci && popd)",
"test": "yarn test:unit && yarn test:integration"
},
"devDependencies": {
"eslint": "^5.16.0",
Expand Down

0 comments on commit 58bb3d4

Please sign in to comment.