Skip to content

Commit

Permalink
[monorepo] add travis + codecov ✅ (#3)
Browse files Browse the repository at this point in the history
* [monorepo] initial attempt at travis

* [monorepo] coveralls => codecov

* [monorepo] don't lerna bootstrap?

* [monorepo] ignore lock files, add lint:fix script

* [core] add node-fetch dev dep

* [monorepo] tweak codecov call

* [monorepo] tweak codecov call take ii

* [monorepo] codecov again

* [core][deps] build-config@^0.0.11

* [core][jest] add <rootDir> to coveragePathIgnorePatterns paths

* [core][jest] add collectCoverageFrom config

* [core][jest] try adding rootDir to collectCoverageFrom glob

* [core][deps] build-config@0.0.12

* [travis] yolo

* [travis] this is the one

* [travis] install global codecov

* [travis] no quotes in yml

* [travis] no quotes in yml part 2
  • Loading branch information
williaster authored and zhaoyongjie committed Nov 25, 2021
1 parent 0d7ce70 commit fb8eb77
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@ jest.config.js
lib/
logs/
node_modules/
package-lock.json
prettier.config.js
yarn.lock
27 changes: 27 additions & 0 deletions superset-frontend/temporary_superset_ui/superset-ui/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
language: node_js

node_js:
- 10.7

cache:
directories:
- node_modules

matrix:
fast_finish: true

install:
- npm install
- npm install -g codecov

env:
- PACKAGE=superset-ui-core

script:
- cd ./packages/$PACKAGE
- yarn install
- yarn run lint
- yarn run test

after_script:
- codecov
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"build": "lerna run build",
"jest": "lerna run test",
"lint": "lerna run lint",
"lint:fix": "lerna run lint:fix",
"prerelease": "yarn run build",
"prepare-release": "git checkout master && git pull --rebase origin master && yarn run test",
"release": "yarn run prepare-release && lerna publish && lerna run gh-pages",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"dev": "beemo babel --watch ./src --out-dir esm/ --esm",
"jest": "beemo jest --color --coverage",
"eslint": "beemo eslint \"./{src,test}/**/*.{js,jsx,json,md}\"",
"lint": "yarn run prettier --write && yarn run eslint --fix",
"lint": "yarn run prettier && yarn run eslint",
"lint:fix": "yarn run prettier --write && yarn run eslint --fix",
"test": "yarn run jest",
"prettier": "beemo prettier \"./{src,test}/**/*.{js,jsx,json,md}\"",
"sync:gitignore": "beemo sync-dotfiles --filter=gitignore",
Expand All @@ -39,8 +40,9 @@
},
"homepage": "https://github.com/apache-superset/superset-ui#readme",
"devDependencies": {
"@data-ui/build-config": "0.0.10",
"fetch-mock": "^6.5.2"
"@data-ui/build-config": "^0.0.12",
"fetch-mock": "^6.5.2",
"node-fetch": "^2.2.0"
},
"dependencies": {
"url-search-params-polyfill": "^4.0.1",
Expand All @@ -64,10 +66,6 @@
"prefer-promise-reject-errors": "off"
}
},
"jest": {
"testPathIgnorePatterns": [
"node_modules"
]
}
"jest": {}
}
}

0 comments on commit fb8eb77

Please sign in to comment.