-
Notifications
You must be signed in to change notification settings - Fork 794
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
Move Windows tests to Travis #246
Conversation
Appveyor failing is expected since I removed its config file 😄 |
echo "Running tests" | ||
|
||
PLUGINS=$(cat plugins/windows_only.txt | tr '\n' ' ') | ||
GINKGO_FLAGS="-p -r --randomizeAllSpecs --randomizeSuites --failOnPending --progress pkg/hns $PLUGINS" |
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.
I'm not thrilled with this explicit pkg/hns
but I'm also not ready to say we need a new abstraction here either. If we see other windows-only packages that aren't getting run in travis because of omission from this list, then we can revisit.
Yeah we can disable AppVeyor after this is merged. |
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.
/lgtm
Removed the appveyor hook too. |
Looks like there's some flakiness in Travis itself which is causing a failure on Windows/Go 1.10.x right now: https://travis-ci.community/t/go-command-not-found/340 https://travis-ci.org/containernetworking/plugins/builds/470107746 |
I more or less tried combining the existing
.appveyor.yml
and thetest.sh
script. I removed line from the travis.yml installing gcc-multilib gcc-mingw-w64 since that won't work on Windows, and doesn't appear to be necessary on Linux either.I had to change
build_windows.sh
to create a temp directory for the GOPATH tricks that we do, since building a GOPATH in the current directory ends up with a path longer 255 characters which Windows doesn't like.Another semi-unfortunate thing is having to manually specify to test the
pkg/hns
package. I couldn't think of another way, since other other packages in that directory don't build on Windows.