Skip to content
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

Merged
merged 1 commit into from
Dec 19, 2018
Merged

Move Windows tests to Travis #246

merged 1 commit into from
Dec 19, 2018

Conversation

benmoss
Copy link
Contributor

@benmoss benmoss commented Dec 10, 2018

I more or less tried combining the existing .appveyor.yml and the test.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.

@benmoss
Copy link
Contributor Author

benmoss commented Dec 10, 2018

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"
Copy link
Contributor

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.

@rosenhouse
Copy link
Contributor

Yeah we can disable AppVeyor after this is merged.

Copy link
Member

@dcbw dcbw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@dcbw dcbw merged commit ee819c7 into containernetworking:master Dec 19, 2018
@squeed
Copy link
Member

squeed commented Dec 19, 2018

Removed the appveyor hook too.

@benmoss
Copy link
Contributor Author

benmoss commented Dec 19, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants