bbc / VideoContext

An experimental HTML5 & WebGL video composition and rendering API.
http://bbc.github.io/VideoContext/
Apache License 2.0
1.33k stars 157 forks source link

Clean up tooling and project structure #140

Closed germain-gg closed 5 years ago

germain-gg commented 5 years ago

Small PR around tooling and dependencies

Things that I tried to do that didn't work:

PTaylour commented 5 years ago

image

50% pixels off, could be outputting just black frames.

It also could just be the regression tests being flaking. I'm rerunning them now

germain-gg commented 5 years ago

I dug a bit into why the CI build was failing.

It turns out that the babel plugin babel-plugin-add-module-exports is needed.

There is probably a better way to load the scripts in the regression HTML pages but I have not taken the time to properly look into that. That's going to be for another PR in the future.

All regression tests are green on my local machine. I'm a bit unsure why Travis is still complaining here.

I added another commit to change the documentation to refer to yarn over npm. Because in the PR #83 it seems that it has been decided that we should switch to that tool.

FYI there are no travis deploy provider for yarn. Hence why I kept the npm reference in the .travis.yml file.

Let me know if you have any more questions, but I feel like this should good to go 👍

PTaylour commented 5 years ago

strange, I'll try updating the branch as it's out of date

PTaylour commented 5 years ago

yarn run test-regression is failing locally for me

PTaylour commented 5 years ago

We've been using cypress internally. Should be a pretty quick job to switch to that. Would give us better visibility of which 52% of the pixels are different

PTaylour commented 5 years ago

I'm going to try running the tests with cypress today

PTaylour commented 5 years ago

Getting there:

image

PTaylour commented 5 years ago

FYI this PR is still blocked by https://github.com/bbc/VideoContext/pull/147, which is still a work in progress. I'll update this branch once 147 is in

yakca commented 5 years ago

Closing this in favour of https://github.com/bbc/VideoContext/pull/187 which includes the commits from this PR and resolves the merge conflict. Thanks @gsouquet