-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tests: test on Linux, macOS and Windows #11538
Conversation
@ncoden not sure if this should be unencrypted https://travis-ci.org/zurb/foundation-sites/jobs/441389318#L441 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With this new configuration, we are starting tests with:
- Headless Chrome with Node
lts/boron
on windows, linux and macOS - Headless Chrome with Node
lts/carbon
on windows, linux and macOS - Headless Chrome with Node
stable
on windows, linux and macOS - 18 browsers via Browserstack with Node
stable
on windows, linux and macOS
So tests are run 63 times. Are you sure this is what you want to do ?
This is still WIP. |
I don't understand how it would be useful (or useful enough to slow tests) to be tested on several versions of Node on Linux, macOS and Window. We specify the Foundation package as compatible with There is some developers tools that embed binaries and can be plateform-specific. But does it worth it to test all this on every pull request ? |
Because there are differences between the platforms and dependencies. |
Do not forget the dependencies. |
Ok I see. Plateform-specific dependencies (like Sass). In that case, what about:
Also I would prefer to stay with |
@DanielRuf The |
I know, this is an issue with nvs and the Windows support is still in Beta. Also all major Node versions should be checked on all platforms. Time does not matter for the testsuite. |
Also lts/* does not work with nvs in many cases (was fixed now) but 6, 8 and 10 is better to understand as new LTS will get other names so it makes not much sense to use lts/*. |
These are LTS branches / releases. Every even release branch will become LTS, every odd one is shortliving (5, 7, 9). |
6 will use the latest release of Node.js 6. Also keep in mind that this is just for CI which has always the latest branch releases. |
Also see https://travis-ci.community/t/windows-instances-hanging-before-install/250/9 And it seems the Windows builds leak probably secure env vars. |
See jasongin/nvs#66 (basically npm is broken on Windows in specific cases). |
@DanielRuf Let me know when you gets it working on Window 😉 (and good luck!) |
@DanielRuf We could use Travis "Stages" too. https://docs.travis-ci.com/user/build-stages Like in the first stage
Then if it successes, in a second stage
Travis doens't run more than 3 job in parallel so it would not slow down tests and stop the Travis build sooner if any test fails. I moved BrowserStack to first position because it takes 5 times as long to finish (so others tests will run in parallel). What do you think? |
Currently just the puppeteer issue exists (the dll issue), the remaining steps work now. |
@DanielRuf What's the status of this? |
Still the same, WIP. |
The Puppeteer dependency is not compatible as you can see in the log of the failing build. |
Tests fails because a process continue to run in Windows. It may be Yarn. https://travis-ci.community/t/build-doesnt-finish-after-completing-tests/288/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DanielRuf I resolved conflicts, fixed the Yarn issue that prevented the build to finish and added cache for it. LGTM 👍. Say a word and it's merged 😉
- 6 | ||
- 8 | ||
- 10 | ||
- 11 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's fail early and use node
instead of 11
or what do you think @ncoden?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have 1 year to think about this 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, 12 is scheduled for 2019-04-23
;-)
… for v6.5.0 d0f6c3b tests: test on Linux, macOS and Windows 8273493 tests: use Node.js 6, 8 and 10 78b516f tests: run Browswestack tests only on one platform 6234087 ci: use Yarn e457b19 chore: downgrade mocha-headless-chrome for now b453e55 fix: downgrade doiuse to support Node.js 6 0c92518 fix: disable Yarn GPG so it doesn't prevent the Travis build to finish 3f3c331 chore: cache Yarn in Travis Co-Authored-By: Daniel Ruf <[email protected]> Co-Authored-By: Nicolas Coden <[email protected]> Signed-off-by: Nicolas Coden <[email protected]>
Description
Test on Linux, macOS and Windows. See https://blog.travis-ci.com/2018-10-11-windows-early-release
Types of changes
Checklist
develop
ordevelop-v...
).