Commit Graph

43 Commits

Author SHA1 Message Date
Aaron Dodson
3851b14627 refactor: Migrate to named exports (#5623)
* refactor: Migrate to named exports

* fix: Sort requires

* fix: Remove duplicate deps
2021-10-20 15:53:23 -07:00
Aaron Dodson
246927a7ee fix: Make update_metadata.sh work on macOS (#5590) 2021-10-07 11:19:52 -07:00
Christopher Allen
51d9dad31f Re-export Blockly.utils.* submodules from Blockly.utils (#5465)
* Reexport Blockly.utils.* modules from Blockly.utils

* Update metadata (file sizes) again

  blockly_compressed.js has gotten too big for the second time this
  quarter.  Update the expected file sizes for it so that tests
  will continue to pass.
2021-09-16 18:23:33 +01:00
alschmiedt
ac01b5cbcb Merge pull request #5295 from alschmiedt/fix_generator_tests
Remove extra output from generator and mocha tests (#5196)
2021-08-05 14:00:14 -07:00
alschmiedt
e7709cbd1f Remove extra output from generator and mocha tests (#5196)
* Remove extra output from generator tests

* Fix test

* Update loglevel for both tests
2021-08-03 13:36:50 -07:00
Aaron Dodson
98dd332fda Add comment about root cause of build artifact size change 2021-08-02 10:34:32 -07:00
Aaron Dodson
2e545c677b Update build artifact sizes in check_metadata.sh 2021-08-02 10:17:38 -07:00
Aaron Dodson
78a5d98c20 Gzip build output files in update_metadata.sh instead of update_metadata.yml. 2021-07-20 16:48:30 -07:00
Aaron Dodson
eddc5f676b Calculate metadata size from freshly-built and gzipped Blockly. 2021-07-20 16:48:30 -07:00
Aaron Dodson
8d3c39212b Added script and workflow to automatically update build artifact sizes in check_metadata.sh 2021-07-20 16:48:30 -07:00
Christopher Allen
9e72378b69 Finish renaming BUILD_DIR; make tests more error-prone
I had forgotten that I needed to change the value of BUILD_DIR
in several different places.

Added comments warning future editors about this as well as filing
issue #5007 to track fixing this properly.

Despite being misconfigured and therefore failing, the typescript
and metadata test scripts were exiting with status 0, indicating
successful completion.  These have been fixed so they should fail
on any error, including misconfiguration.
2021-07-09 14:06:59 +01:00
Christopher Allen
c265eb87b5 Update metadata sizes for Q2 2021 release
Transcribed (with tweaks) from PR #4986.
2021-07-02 10:23:10 +01:00
Christopher Allen
37ecce8d80 Have npm run typings use built directory; fix typescript tests
* Modify scripts/gulpfiles/typings.js to write typings to BUILD_DIR.
* Modify tests/scripts/compile_typings.sh to check compilability of
  resulting output from BUILD_DIR.
* Rename checkin script to checkin:built, add a checkin:typings script
  to do the same for .d.ts files, and a new checkin script to do both.
* Have recompile run checkin:typings.
2021-06-30 15:34:54 +01:00
Christopher Allen
96da5ed014 Fix metadata tests
- Do not run npm install.
- Do not re-run build that has already been run by a previous test.
- Check files in built/ instead repo root.
- Fix formatting, styleguide issues.
2021-06-24 12:09:06 +01:00
Christopher Allen
f477db2251 Remove unneeded macOS setup
Chrome comes pre-installed on GitHub hosted macOS runners, and while
`Xvfb` does not seem to be installed neither does it seem to be needed.
2021-06-14 19:41:12 +01:00
Christopher Allen
ab33cd567a Update test setup for GitHub Actions
- Do the (hopefully now) correct test to check we are on macOS.
- Fix brew command-line syntax for installing google-chrome.
2021-06-14 19:41:12 +01:00
alschmiedt
e4f15898d0 Update chrome version (#4866) 2021-06-03 17:57:40 -07:00
alschmiedt
91c060f872 Update metadata March 2021 (#4738) 2021-03-25 17:53:29 -07:00
alschmiedt
c6b8791ece Update chrome driver version (#4710) 2021-03-17 12:56:10 -07:00
alschmiedt
26beff4b2c Migrate our tests to use github actions (#4614) 2021-02-02 10:08:51 -08:00
alschmiedt
be317617f9 Updates the metadata information (#4550) 2020-12-17 16:29:42 -08:00
Sam El-Husseini
67a6bfd0cf Fix travis 2020-11-17 14:15:51 -08:00
Monica Kozbial
81ee330eb9 Update metadata sizes for new release (#4323) 2020-09-24 15:31:02 -07:00
Abby
ed38a45efd Update chrome driver version 2020-08-26 08:10:09 -07:00
Sam El-Husseini
92f0e7533e Add blockly size metadata snapshot of previous releases (#4018) 2020-07-06 14:03:53 -07:00
Sam El-Husseini
66febd7b0e Update metdata for June 2020 release (#4010) 2020-07-01 14:10:51 -07:00
Sam El-Husseini
fd916fdb9b Bounding Box interface (#3906)
* Add an interface describing a bounding box registered on the workspace

* Clear the bounding box array

* PR comments

* Update chromedriver
2020-05-19 18:06:11 -07:00
Monica Kozbial
1a0d966b70 Updating chrome version in selenium config. (#3805) 2020-04-10 10:19:43 -07:00
Rachel Fenichel
b4a448c632 Update task names in another file 2020-02-20 17:44:29 -08:00
alschmiedt
1a2fb6ddf0 Add new build scripts (#3608)
* Add new build scripts

* Fix pr comments
2020-01-16 16:52:20 -08:00
Sam El-Husseini
5852bef90d Inject constants CSS in createDom (#3502)
* Inject constants CSS in createDom instead. Use a random identifier to pre-emptively set CSS that uses the disabled pattern id.
2019-12-10 15:00:32 -08:00
RoboErikG
e69db137a7 Add a test for built file size (#3075)
* Add a test for built file size

Adds a script test for building Blockly's compressed files and
checking their size to prevent unexpected increases.

* Update size for new changes

* Add full stop
2019-09-25 15:03:31 -07:00
Sam El-Husseini
09d2a167f9 Fix travis by running browser tests in headless mode (#3001)
* Fix travis by running browser tests in headless mode
2019-09-11 17:25:22 -07:00
Sam El-Husseini
7ab4bb846c Add a test script to compile typings and test on travis (#2808) 2019-08-13 13:49:28 -07:00
Rachel Fenichel
da2a89e177 Update to webdriverio v5; fix resulting test breakages 2019-04-30 14:38:33 -07:00
Rachel Fenichel
7ec5599829 Merge pull request #2124 from google/update_chromedriver_develop
Update chromedriver version
2018-11-30 13:46:24 -08:00
Rachel Fenichel
b8d7ed1c14 Chromedriver 2.43 -> 2.44 2018-11-30 13:38:40 -08:00
Rachel Fenichel
779e70f640 Update selenium version 2018-11-19 13:28:59 -08:00
Rachel Fenichel
a4c3d1bd89 Update chromedriver version 2018-11-16 17:31:34 -08:00
Rachel Fenichel
6e300cc27c Add firefox to travis; quit early if files are not found in generator tests 2018-11-09 16:50:57 -08:00
Rachel Fenichel
6202919272 Make generator tests compare results against golden files; add golden files. 2018-11-09 13:22:34 -08:00
Rachel Fenichel
55dca1eed5 Update chromedriver version
See https://github.com/LLK/scratch-blocks/pull/1568
2018-06-07 11:25:42 -07:00
Neil Fraser
82705923cb Convert compile demo into a unit test. (#1360)
* Intentionally break Travis.

* Alphabetize tests, remove orphaned test, and add fail to test that's running.

* Unbreak test, disable OS X, move scripts, list compiler directory.

* Test Java, break test.

* Unbreak test, call compile script.

* Compile main_compressed.js

* Run test command using bash.

* Fix path.

* Exclude node modules.

* Be more specific about JS files to compile.

* Test failure.

* Restore OSX, undo Blockly failure, remove compilation demo, add compilation test.

* Delete manual test files.

* Ignore downloaded/generated files.

* Whitespace cleanup.
2017-10-12 14:54:57 -07:00