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

Build all example docs #201

Closed
saulshanabrook opened this issue Jul 10, 2015 · 2 comments
Closed

Build all example docs #201

saulshanabrook opened this issue Jul 10, 2015 · 2 comments

Comments

@saulshanabrook
Copy link

If possible, maybe it would be nice to build all example code, to verify that at least it still builds.

I am not sure if there are any tools that make this easier.

@zankich
Copy link
Contributor

zankich commented Jul 12, 2015

@saulshanabrook I actually have a bash script which I run locally to do this, but it should probably be part of the make test process as well.

#!/bin/bash
FILES=($(ls examples/*.go | sed -e 's/examples\///'))

for file in "${FILES[@]}"
do
  echo $file
  go build -o /tmp/$file examples/$file
done

@saulshanabrook
Copy link
Author

@zankich ahh thats pretty cool.

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

No branches or pull requests

2 participants