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

Travis-CI ands test updates #423

Merged
merged 14 commits into from
Feb 20, 2019
Merged

Conversation

directionless
Copy link
Contributor

@directionless directionless commented Feb 13, 2019

Some initial work to get travis-ci running. This includes updates to the make the tests more reliable, and have fewer dependancies on on the initial container setup. Travis-ci is desirable for it's multiple-platforms.

  • Added travis-ci
  • Updated runtime_test to download osqueryd as part of a test setup step.
  • moved downloadOsqueryInBinDir to test setup and removed race conditions

This does mean that we have duplicate CI systems

@directionless directionless mentioned this pull request Feb 13, 2019
@directionless directionless changed the title Seph/travis ci Travis-CI ands test updates Feb 13, 2019
Copy link
Contributor

@blaedj blaedj left a comment

Choose a reason for hiding this comment

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

lgtm

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

var testOsqueryBinaryDirectory string

// TestMain overrides the default test main function. This allows us to share setup/teardown.
Copy link
Contributor

Choose a reason for hiding this comment

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

is there anything that the default test main function does for us? or is it just the os.Exit(m.Run()) by default?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Docs imply that's all it is, and suggest it as the place to hang setup/teardown tasks.

@directionless directionless merged commit 0c18bb8 into kolide:master Feb 20, 2019
@directionless directionless deleted the seph/travis-ci branch February 20, 2019 21:23
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.

2 participants