Commit graph

50 commits

Author SHA1 Message Date
JJ Kasper
f89d55f10d Add selenium-webdriver and testing cross-browser in PRs (#9821)
* Migrate from wd to selenium-webdriver

* Add chaining for next-webdriver

* Re-add browserStackLocal global for teardown

* Add additional element methods

* Use freshWindow helper for chrome

* Add selenium-server

* Add cross-env for windows compat

* Fix single quote windows

* Update production preload tests

* Update preload tests count

* Update CircleCi for testing other browsers

* Update CI configs

* Update config

* Add browser.url command

* Add more methods

* Update xcode version

* Make sure to add chromedriver to path

* Add forceExit flag

* Update config

* Update config

* Disable safari

* Fix bug in test

* Add teardown logging

* Update jest teardown

* Move testing ie11 to Azure

* Update job names

* Remove force exiting on long teardown

* Update Azure config

* Re-add safari testing with BrowserStack

* Update config

* Update prefetch tests for ie11

* Update prefetch for safari and ids for ie11 testing

* trigger prefetching manually in ie
2019-12-26 15:01:22 -05:00
JJ Kasper
c5dbc1fe95 Fix react@next tests missing chromedriver env (#9632)
* Update to react@next to debug failure

* Use CI command to bump react

* Make sure to set chromedriver env

* Remove react bump for debugging
2019-12-05 11:17:26 -05:00
Joe Haddad
eb85f4102d Run Lint Separate (#9563) 2019-11-27 13:57:18 -06:00
JJ Kasper
c6393b4988 Tweak concurrency for CircleCi (#9558) 2019-11-27 14:49:17 -05:00
Joe Haddad
b8acc347c0
Increase CI Parallelism (#9552) 2019-11-27 09:36:44 -05:00
JJ Kasper
b6aebf92b7 Bump CircleCi concurrency (#9526) 2019-11-25 18:30:47 -05:00
JJ Kasper
12cbb2e95a
Add custom timings for CircleCi (#9523)
* Add custom timings for CircleCi

* Re-add split-by flag

* Add testcase item to junit.xml

* Log tests being run

* Update junit.xml path

* bump
2019-11-25 16:50:46 -06:00
JJ Kasper
b058427b76 Update CI/test set up (#9499)
* Disable concurrency for tests

* Add browser instance sharing

* Bump concurrency and install chromedriver smoother

* Fix config typo

* Fix local test

* Limit azure concurrency again

* Add delay for empty-object-test

* Make sure to use open port for chromedriver

* Move browser closing to jest-environment

* Re-enable concurrency for Azure

* bump

* Disable concurrency for Azure again

* Re-enable concurrency for Azure

* bump
2019-11-25 13:19:45 -05:00
JJ Kasper
f5969d29a6 Restore package.json and yarn.lock to allow deploy (#9230) 2019-10-28 21:57:49 -04:00
htbvo
211c84e1c9 allow NextScript to optionally defer javascript (#8980)
* allow NextScript to optionally defer javascript

* move defer options to experimental feature

* combine defer flags into a single option

* Update deferScripts to work with serverless target

* Add test for defer and async property

* Read the async property

* Check versions of chrome and chromedriver

* Update to chromedriver 76

* Fix test
2019-10-26 19:27:22 +02:00
Joe Haddad
f211b35539
Check Files during Install (#9182) 2019-10-23 14:14:32 -04:00
JJ Kasper
573fbff88a Add yarn check to tests (#9163)
* Add yarn check to tests

* Update yarn.lock

* Update lockfile some more

* Use resolutions to bump browserslist
2019-10-22 21:02:59 -04:00
Andrew Clark
c0a1c0f939 Test React integration using next dist-tag (#9165)
Instead of `canary`. React uses `next` to represent the next
minor release.
2019-10-22 14:44:24 -04:00
Joe Haddad
ed44d92b68
Test react(-dom)@canary Every 12 Hours (#9151)
* Test `react(-dom)@canary` Every 12 Hours

* Use POSIX syntax

* Test

* Revert "Test"

This reverts commit ba5f22f0b0a2255613b8f11af84581722ad2ca7a.

* Print react versions prior to test

* Revert "Revert "Test""

This reverts commit 0b3cde3c4226066309561ca7c9e684070999af32.

* Revert "Revert "Revert "Test"""

This reverts commit c2c284a7a8d6dc9f39c6d16df109da3ed402afdf.
2019-10-21 15:02:34 -04:00
Joe Haddad
d046dc6072
Disable telemetry for tests (#8725) 2019-09-12 22:51:56 -04:00
JJ Kasper
e5aa9614e1 Lock CircleCi image for now (#8706)
* use legacy image for now

* Use image hash

* Update config
2019-09-11 12:56:32 -04:00
JJ Kasper
7b933f675a Optimize test setup (#8644)
* Tweak test set-up

* Update azure config

* Add cleaning test files and windows handling

* Limit windows test to one at a time

* Tweak test settings

* Update tests splitting

* remove custom concurrency for azure

* Test Azure var

* Update Azure config

* bump

* Simplify cleaning up
2019-09-10 13:11:55 -04:00
Joe Haddad
92ea3b6e9d Revert "Don't require test job for deploying" (#8199)
This reverts commit 00e50144c6.
2019-08-01 12:26:31 +01:00
JJ Kasper
00e50144c6 Don't require test job for deploying (#8194) 2019-07-31 19:15:21 -04:00
Natalie Marleny
8e467bee1f [Enhancement]: Refactor circleCI config (#7963)
* Refactor bash commands in circleCI config

- Split into multiple lines for easier readability

* De-duplicate circleCI commands using parameter

- Reference: https://circleci.com/docs/2.0/configuration-reference/
2019-07-15 16:04:36 +02:00
JJ Kasper
12f4c718b5 Re-add retrying tests in CircleCi to prevent false failures (#7374) 2019-05-18 13:56:18 +02:00
Tim Neutkens
6feca310d7
Revert ncc webpack (#7370)
* Revert "Add retrying to CircleCi and fixes for ncc'ed webpack (#7366)"

This reverts commit 5beb365d12.

* Revert "ncc Webpack build (#7301)"

This reverts commit bd8f3c625f.

# Conflicts:
#	packages/next/package.json
2019-05-17 13:25:46 +02:00
JJ Kasper
5beb365d12 Add retrying to CircleCi and fixes for ncc'ed webpack (#7366)
* Add retrying to CircleCi and run prepublish separately to get better logs in Azure

* Apply workaround for Azure node 10 and ncc

* Update incorrect webpack imports

* Use ncced autodll-webpack-plugin

* Move autodll-webpack-plugin to devDependencies
2019-05-17 10:57:03 +02:00
Joe Haddad
a008b19932
Reduce CircleCI Parallelism (#7171) 2019-04-26 22:25:26 +09:00
JJ Kasper
92e2f26999
Remove list_dist from debugging (#7148) 2019-04-24 16:04:37 -05:00
JJ Kasper
c0ee49b4fb
Move type generating (#7147)
* Move types to run on prepublish in each package

* Update circleci to list dist
2019-04-24 15:43:04 -05:00
JJ Kasper
9aced1788e Move generating types to before deploy (#7145)
* Move generating types to before deploy

* Indent again

* Re-add type generating to prepublish
2019-04-24 20:41:07 +02:00
Jeremy Bolding
d2b0db811c Rewrote .circleci/config.yml to 2.1 schema (#7103) 2019-04-22 20:21:42 +02:00
JJ Kasper
5421274c87
Fix re-rendering on client after navigating back from external (#6652)
* Fix re-rendering on client after navigating
back from external site

* Clean up tagging before unload

* Add check for history.state 1/2

Co-Authored-By: ijjk <22380829+ijjk@users.noreply.github.com>

* Add check for history.state 2/2

Co-Authored-By: ijjk <22380829+ijjk@users.noreply.github.com>

* Add check for options

Co-Authored-By: ijjk <22380829+ijjk@users.noreply.github.com>

* Add test for navigating to external site and back
also added testing in safari and firefox

* Add test for query in url
2019-04-09 16:58:44 -05:00
JJ Kasper
04df54a3b4 Circleci filter PRs (#6961)
Don't run `deploy` and `test-ie11` jobs for PRs in CircleCI
2019-04-09 16:43:00 +02:00
JJ Kasper
ecf6134a7f Bump parallelism on circleci (#6926) 2019-04-07 15:14:51 -04:00
JJ Kasper
9995f5d518
Add checking of react versions (#6892)
* Add checking of react versions to make sure it
meets the minimum set in peerDependencies

* Simplify react check

* Update error wording

Co-Authored-By: timneutkens <tim@timneutkens.nl>

* Add err.sh

* Update test-production circleci job name

* Add react error message to next-dev-server

* Update test for new wording
2019-04-04 16:47:17 -05:00
JJ Kasper
e25312b7d7
Make sure error isn't swallowed for production test on CircleCi (#6848) 2019-04-01 09:58:17 -05:00
JJ Kasper
b6b0db186a Update env variables for CircleCi (#6834) 2019-03-29 11:17:47 -04:00
JJ Kasper
533018f7d0 Update tests for BrowserStack (#6810)
Update tests to setup webdriver stuff in `jest-environment` and re-use one browser session instead of spawning one for each webdriver call to prevent creating too many BrowserStack sessions.
2019-03-29 16:05:53 +01:00
JJ Kasper
7d0919a784 Break up basic test suite (#6730)
* Break out client-navigation and rendering
test from basic test

* Try with parallelism dialed back to 3

* Update jest-junit for more compatible timings in CircleCI

* Bump to test timings

* Use filepath for suitename in jest-junit

* Store reports as artifacts

* Try using classname for timings

* Bump

* Remove reports from artifacts
2019-03-20 11:01:32 +01:00
Joe Haddad
e906e4bd77
Adjust CircleCI flow (#6728)
* Format circleci config

* Tweak configuration into multiple steps

* Persist whole repo to workspace

* Attach workspace for tests

* Run tests in parallelism x4

* Test circleci parallelism

* parallel x6 times

* Save test timing

* Use env var instead

* run in ci mode

* test speed
2019-03-19 21:55:43 -04:00
Connor Davis
17ad1eb8aa
Add --frozen-lockfile to circleci 2019-02-19 23:17:14 -06:00
Joe Haddad
36946f9709
Remove lerna bootstrap (#6289) 2019-02-14 08:33:00 -05:00
Tim Neutkens
315a374298 Add new circleci config 2019-02-11 08:15:23 +01:00
Tim Neutkens
dd556bf90b
Add tsc type checking (#5826)
* Add tsc type checking

* Add linting on circle

* Add node-fetch types

* Use strict mode
2018-12-05 21:45:50 +01:00
Noel Yoo
c111eac1ae Update circleci build (#5491) 2018-10-22 13:05:04 +02:00
Tim Neutkens
57c61cde3a Use yarn to correctly pass through arguments 2018-10-02 16:54:36 +02:00
Tim Neutkens
f9d54c1336 Add yes to publish command 2018-10-02 16:16:03 +02:00
Tim Neutkens
3f5524abd3 Disable publish on branch builds 2018-10-02 16:06:49 +02:00
Tim Neutkens
61b93e5291 Install deps to publish 2018-10-02 15:54:20 +02:00
Tim Neutkens
be5dbe3cfd Persist dist directory under packages 2018-10-02 15:12:28 +02:00
Tim Neutkens
b91d4975aa Add circleci publish 2018-10-02 14:49:39 +02:00
Tim Neutkens
b1c4f3aec4
Monorepo (#5341)
- Implements Lerna
- Moves all source code into `packages/next`
- Keeps integration tests in the root directory
2018-10-01 01:02:10 +02:00
Tim Neutkens
2f2eaf25e4 Add circleci 2018-09-02 15:14:29 +02:00