* Add circle ci config file for linux tests
* Moved repeated commands into commands section for reuse in jobs
Circle apparently allows you to separate custom commands into their own
key, and then reuse them at will in jobs.
* move conditions into individual commands