NSLS-II / metadatastore

DEPRECATED: Incorporated into https://github.com/NSLS-II/databroker
Other
2 stars 11 forks source link

WIP: conda-build on travis #176

Closed ericdill closed 9 years ago

ericdill commented 9 years ago

attn @danielballan @tacaswell conda-build is functional on travis!

ericdill commented 9 years ago

attn @danielballan @tacaswell This should go in soon. It adds the following:

tacaswell commented 9 years ago

The tests never get run?

tacaswell commented 9 years ago

Oh, I see. Might be worth building the conda package, installing in and then running the tests off of that.

ericdill commented 9 years ago

Testing a conda-built package requires a pretty major overhaul of our test suite. Right now, nose uses the source code to auto-discover the tests. Here is one solution that I can implement pretty easily:

Move the tests from metadatastore/metadatastore/test to metadatastore/test. Then on travis I can rm -r the metadatastore directory which will force the tests to use the conda installed version.

Or we can punt on this for now and just let the conda-build serve as a (reasonably effective) smoketest that makes sure that all the modules are importable.

ericdill commented 9 years ago

Also, I want to punt on making travis test the conda-build for now because I think I can do this more sustainably by using conda-skeletor to find all the deps/testing files for me

tacaswell commented 9 years ago

this seems reasonable to me

ericdill commented 9 years ago

cff1873 should upload the built packages to lightsource2-dev. It's a little hard to test since it only works when travis executes on the master branch. Environmental variable are disabled on builds for pull requests.

tacaswell commented 9 years ago

merged to see what happens ;)

@ericdill as a side note, the encrypted envs are available on pushes to any branch on upstream so you can work on this sort of thing by pushing branches up stream (a perfectly good reason to break the rule against pushing rouge branches to upstream). The logic is that any old person can open a PR, only people with commit rights can push to upstream.

ericdill commented 9 years ago

Looks like it worked! Sort of. 2.7 and 3.4 got built, haven't yet looked in to why 3.5 did not build.

http://anaconda.org/lightsource2-dev/metadatastore/files

Good point about other branches Tom thanks. In production though, I should add a check to make sure we are on the master branch before uploading to lightsource2-dev

On Thu, Oct 8, 2015, 11:24 PM Thomas A Caswell notifications@github.com wrote:

merged to see what happens ;)

@ericdill https://github.com/ericdill as a side note, the encrypted envs are available on pushes to any branch on upstream so you can work on this sort of thing by pushing branches up stream (a perfectly good reason to break the rule against pushing rouge branches to upstream). The logic is that any old person can open a PR, only people with commit rights can push to upstream.

— Reply to this email directly or view it on GitHub https://github.com/NSLS-II/metadatastore/pull/176#issuecomment-146745687 .