Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

[monorepo] add travis + codecov ✅ #2

Merged
merged 18 commits into from
Sep 10, 2018
Merged

Conversation

williaster
Copy link
Contributor

This PR attempts to add travis to the build so it fails when prettier, linting, or testing fails.

@kristw @conglei @john-bodley @mistercrunch

package.json Outdated
@@ -27,6 +27,7 @@
],
"license": "Apache-2.0",
"devDependencies": {
"coveralls": "^3.0.2",
Copy link
Contributor

@john-bodley john-bodley Sep 7, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use Codecov instead of Coveralls? This ensures consistency with incubator-superset and doesn’t require a token.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, I initially tried codecov and couldn't add it to this repo so tried coveralls ... still can't add it to the repo so I'll move back to coveralls 👍

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the after-script command fails,

$ ./node_modules/.bin/codecov
/home/travis/.travis/job_stages: line 78: ./node_modules/.bin/codecov: No such file or directory

.travis.yml Outdated
fast_finish: true

install:
- npm install && lerna bootstrap
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe you can list each command seperately.

@williaster williaster changed the title [monorepo] add travis ✅ [monorepo] add travis + codecov ✅ Sep 7, 2018
@williaster
Copy link
Contributor Author

things are all getting executed correctly, trying to debug why coverage %s are being reported as unknown.

@codecov
Copy link

codecov bot commented Sep 8, 2018

Codecov Report

❗ No coverage uploaded for pull request base (chris--core-package@b3ffc4e). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@                  Coverage Diff                   @@
##             chris--core-package       #2   +/-   ##
======================================================
  Coverage                       ?   98.46%           
======================================================
  Files                          ?        7           
  Lines                          ?       65           
  Branches                       ?        0           
======================================================
  Hits                           ?       64           
  Misses                         ?        1           
  Partials                       ?        0

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b3ffc4e...00211cc. Read the comment docs.

@williaster
Copy link
Contributor Author

williaster commented Sep 8, 2018

It only took 16 commits but 🎉 (there was an issue with @data-ui/build-config and jest rootDir configuration)

.travis.yml Outdated
@@ -20,4 +21,4 @@ script:
- 'cd ./packages/$PACKAGE && yarn install && yarn run lint && yarn run test'

after_script:
- './node_modules/codecov/bin/codecov'
- 'codecov'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nix the quotes.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@john-bodley for all scripts?

.travis.yml Outdated
- PACKAGE=superset-ui-core

script:
- cd ./packages/$PACKAGE && yarn install && yarn run lint && yarn run test
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can split the script to br a series of commands,

script:
  - cd ./packages/$PACKAGE
  - yarn install
  - ...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's prob nicer for debugging too 👍

.travis.yml Outdated
language: node_js

node_js:
- '10.7'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nix the quotes here too.

@williaster
Copy link
Contributor Author

gonna merge this into the wrong branch to get a cherry pickable hash for master. don't think I can change the branch I'm merging into now and the other is merged.

@williaster williaster merged commit 9a791f7 into chris--core-package Sep 10, 2018
williaster added a commit that referenced this pull request Sep 10, 2018
* [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
@kristw kristw added reviewable Ready for review and removed reviewable Ready for review labels Nov 13, 2018
williaster pushed a commit that referenced this pull request Dec 13, 2018
williaster pushed a commit that referenced this pull request Dec 14, 2018
williaster added a commit that referenced this pull request Dec 14, 2018
* [build] fix typescript builds

* [typescript] ensure types pass in build

* [typescript][connection] declare modules in tests

* [typescript][connection] fix ts errors in tests

* [typescript][connection] test/types.ts => types/external.d.ts

* [chart][typescript] add @types/react-loadable

* [chart][components] convert to ts

* [charts][tests][broken] convert to ts

* [chart][typescript] re-write component generics

* [chart][typescript] fix reactify generic, add react-dom types

* [chart][typescript] more iteration

* - Tweaking reactify types (using Readonly types).
- Uncovered an issue in which ReactifyProps and Props can collide on id and className.
- Move @types/react-loadable to dev dependency
- Fixing a lint error

* [chart][deps] add @types/fetch-mock

* [client][typescript] add and export SupersetClientInterface

* [chart][clients] fix ts

* [charts][components] more ts iterations

* [chart][client] assert FormData type

* [chart][deps] try adding newest @types/react

* [chart][components][ts] fix reactify prop TS

* [chart] lint

* [chart][ts] lint #2, move @types to deps not dev-deps

* [chart][jest] fix tests

* [chart][tests] up branch coverage

* [chart][ts][test] null => undefined

* [chart][tests] hundo

* [chart][tests] update name

* [chart][ts] ChartClient type fixes
kristw pushed a commit that referenced this pull request Apr 17, 2020
zhaoyongjie pushed a commit to zhaoyongjie/superset-ui that referenced this pull request Sep 23, 2021
* feat: add plugin for Kepler

* fix: add dep and update naming for consistency

* fix: lint issues
zhaoyongjie pushed a commit to zhaoyongjie/superset-ui that referenced this pull request Sep 24, 2021
* feat: add plugin for Kepler

* fix: add dep and update naming for consistency

* fix: lint issues
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants