Commit Graph

29 Commits

Author SHA1 Message Date
Daniel Martí
5fb1c07412 start running the tests on CI again
Now that they're both faster and more reliable than before the refactor.

On my laptop, 'go test' now consistently takes ~10s, and I haven't found
any flakes in the past couple of days.
2019-04-01 12:18:16 +01:00
Daniel Martí
3d3bf22ccc start the chromedp v2 refactor
First, we want all of the functionality in a single package; this means
collapsing whatever is useful into the root chromedp package.

The runner package is being replaced by the Allocator interface, with a
default implementation which starts browser processes.

The client package doesn't really have a place in the new design. The
context, allocator, and browser types will handle the connection with
each browser.

Finally, the new API is context-based, hence the addition of context.go.
The tests have been modified to build and run against the new API.
2019-04-01 12:17:28 +01:00
Daniel Martí
7f54f3f93c CI: test on 1.11.x instead of tip
tip is rather unstable, so we shouldn't block PRs if it happens to break
our build or tests.

While at it, run 'go mod tidy' with the latest tip version.
2019-01-14 10:38:19 +00:00
Kenneth Shaw
68c34da207 Initial vgo support 2018-05-26 14:05:58 +07:00
Kenneth Shaw
f683cfc4c1 Minor code cleanup 2018-03-27 04:31:09 +07:00
Kenneth Shaw
097f1903e5 Bumping travis-ci config to go1.10.x series 2018-03-02 09:02:06 +07:00
Daniel Martí
98b0b39779 CI: use latest versions of each Go major version
And use -u on go get.
2017-12-18 10:51:37 +07:00
Kenneth Shaw
2f3b8c00e9 Fixing issue with unit tests so that they run properly on Darwin/Windows 2017-12-18 09:55:04 +07:00
Kenneth Shaw
148e24a615 Fixing issues with unit tests
1. Changes travis configuration to use the chrome addon
2. Adds more command line options to runner package
3. Removes grab-headless_shell.sh script
4. Cleans up and adds some environment variables for controlling how
   unit tests are ran
5. Fixes a minor issue in chromedp-gen on comment output (for working
   with latest protocol definition)
2017-12-18 07:11:42 +07:00
Kenneth Shaw
89b40f20af Updating to latest protocol.json 2017-09-03 08:15:59 +07:00
Kenneth Shaw
a2ab1b4ed2 Fixing typo in travis config 2017-05-24 10:03:55 +07:00
Kenneth Shaw
d310a693be Converting travis apt dependencies to official addons config style 2017-05-24 10:02:32 +07:00
Kenneth Shaw
e883c99c6d Fixing travis config from last commit 2017-05-24 09:58:46 +07:00
Kenneth Shaw
7d501c8122 Updating travis config to add libstdc++6 dependency 2017-05-24 09:55:56 +07:00
Kenneth Shaw
f9b98929b0 Yet another change to travis configuration 2017-02-22 16:19:21 +07:00
Kenneth Shaw
68fbb76e35 Another change to travis configuration 2017-02-22 16:12:51 +07:00
Kenneth Shaw
a2966fde60 Removing -race on travis test (for now) 2017-02-22 15:49:47 +07:00
Kenneth Shaw
a6d06c7524 Attempt to fix travis ci settings 2017-02-22 09:13:31 +07:00
Kenneth Shaw
6b426dd931 Changing travis ci config 2017-02-22 09:01:10 +07:00
Kenneth Shaw
c6781d513d Adding go1.8 to travis config 2017-02-22 08:27:44 +07:00
Kenneth Shaw
e8e7c84642 Attempting fix to travis ci config 2017-02-22 08:24:49 +07:00
Kenneth Shaw
6ce1f2fdfb Reenabling TestStop
- Added contrib/grab-headless_shell.sh to grab latest headless_shell
- Changed travis config to use contrib/grab-headless_shell.sh
- Reenabled TestStop since Page.stopLoading is now available with latest
  available headless_shell
2017-02-22 07:58:30 +07:00
Kenneth Shaw
ab80f4c5bc Fixing race issues on nodes 2017-02-18 14:28:43 +07:00
Kenneth Shaw
ee58f3a0e0 Fixing travis again 2017-02-09 22:27:15 +07:00
Kenneth Shaw
0de0bce751 Fixing travis.yml 2017-02-09 22:23:23 +07:00
Kenneth Shaw
0ac58bf932 Another fix for travis 2017-02-09 22:19:20 +07:00
Kenneth Shaw
cd3e2c613c Yet another attempt to fix travis.yml 2017-02-09 22:09:01 +07:00
Kenneth Shaw
3931d42ab5 Fixing travis.yml 2017-02-09 22:04:07 +07:00
Kenneth Shaw
42c6cca7ed Initial commit of pool and unit tests 2017-02-09 22:01:40 +07:00