Skip to content
This repository has been archived by the owner on Mar 14, 2023. It is now read-only.

Commit

Permalink
👷 adding sep ci npm script
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Truesdell committed Oct 19, 2017
1 parent 3b6504b commit 399d9a8
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 22 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ jobs:
- run: ./node_modules/.bin/lerna run --scope @boldr/core -- build
- run: ./node_modules/.bin/lerna run --scope @boldr/tools -- build
- run: ./node_modules/.bin/lerna run --scope @boldr/backend -- build
- run: yarn test:ci
- run: yarn gencoverage
- run: yarn run test:ci
- run: yarn run gencoverage
- run: ./node_modules/.bin/codecov -t a3dc697a-382d-4d84-a07b-1f5682c3d70a -f coverage/coverage-final.json
16 changes: 1 addition & 15 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,7 @@ workspace:
path: boldr

pipeline:
restore-cache:
image: drillster/drone-volume-cache
restore: true
mount:
- ./node_modules
volumes:
- /tmp/cache:/cache


build:
image: node:8.7
Expand All @@ -22,11 +16,3 @@ pipeline:
- yarn run test:ci
- yarn gencoverage
- ./node_modules/.bin/codecov -t a3dc697a-382d-4d84-a07b-1f5682c3d70a -f coverage/coverage-final.json

rebuild-cache:
image: drillster/drone-volume-cache
rebuild: true
mount:
- ./node_modules
volumes:
- /tmp/cache:/cache
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"prepush": "lerna run test -- -u",
"prettier": "node ./internal/scripts/prettier.js write",
"test": "lerna run test -- -u",
"test:ci": "lerna run test -- --ci"
"test:ci": "lerna run test:ci"
},
"keywords": [
"react",
Expand Down
1 change: 1 addition & 0 deletions packages/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"prepare": "npm run build",
"build": "rimraf lib && prepublish",
"test": "echo \"No tests... skipping\" && exit 0",
"test:ci": "echo \"No tests... skipping\" && exit 0",
"release": "git push && release-it --github.release --npm.publish --non-interactive",
"release:minor": "git push && release-it --github.release --npm.publish --non-interactive --increment minor",
"release:major": "git push && release-it --github.release --npm.publish --non-interactive --increment major"
Expand Down
3 changes: 2 additions & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
},
"scripts": {
"build": "rm -rf ./lib && NODE_ENV=production babel src --out-dir lib",
"test": "echo \"No tests... skipping\" && exit 0"
"test": "echo \"No tests... skipping\" && exit 0",
"test:ci": "echo \"No tests... skipping\" && exit 0"
},
"devDependencies": {
"babel-cli": "^6.26.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"url": "git+https://github.com/strues/boldr.git"
},
"scripts": {
"test": "jest"
"test": "jest",
"test:ci": "jest --ci --no-cache"
},
"dependencies": {
"app-root-dir": "^1.0.2",
Expand Down
3 changes: 2 additions & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"clean": "rimraf lib && rimraf es",
"format": "prettier --single-quote=true --jsx-bracket-same-line=false --trailing-comma=all --print-width=100 --write \"src/**/*.js\"",
"prepare": "rimraf lib && NODE_ENV=production prepublish --target-unstable",
"test": "jest"
"test": "jest",
"test:ci": "jest --ci --no-cache"
},
"dependencies": {
"history": "^4.7.2",
Expand Down
1 change: 1 addition & 0 deletions packages/editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"clean": "git clean -fdX .",
"lint": "eslint src",
"test": "jest",
"test:ci": "jest --ci --no-cache",
"storybook": "start-storybook -p 6006",
"build-storybook": "build-storybook"
},
Expand Down
1 change: 1 addition & 0 deletions packages/tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"build": "BOLDR_DEBUG=1 npm run clean && prepublish",
"clean": "rimraf lib",
"test": "echo \"No tests... skipping\" && exit 0",
"test:ci": "echo \"No tests... skipping\" && exit 0",
"format": "prettier --single-quote=true --print-width=100 --jsx-bracket-same-line=true --trailing-comma=all --write \"src/**/*.js\""
},
"dependencies": {
Expand Down
3 changes: 2 additions & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"clean": "rimraf lib",
"compile": "NODE_ENV=production babel src --ignore *.test.js --out-dir lib",
"prebuild": "npm run clean",
"test": "jest"
"test": "jest",
"test:ci": "NODE_ENV=test jest --ci --no-cache"
},
"devDependencies": {
"babel-cli": "^6.26.0",
Expand Down
1 change: 1 addition & 0 deletions project/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"seed": "boldr seed",
"start:prod": "NODE_ENV=production node ./lib/index.js",
"test": "NODE_ENV=test jest --config jest.config.js",
"test:ci": "NODE_ENV=test jest --config jest.config.js --ci --no-cache",
"update": "babel-node internal/scripts/updateSchema.js"
},
"dependencies": {
Expand Down

0 comments on commit 399d9a8

Please sign in to comment.