shbhuk / barycorrpy

Python version of Barycorr
GNU General Public License v3.0
37 stars 6 forks source link

Docker and Continuous Integration #49

Closed bjfultn closed 3 years ago

bjfultn commented 3 years ago
bjfultn commented 3 years ago

@shbhuk this will take some final tweaks to transition what I've set up for my fork over to this repo.

bjfultn commented 3 years ago
  1. Merge into your dev or another branch specific to this feature.
  2. Install docker desktop on your machine and run the tests locally with make docker_tests to make sure everything is working
  3. Head over to travis-ci.com and try to add your repo. It should send you back to GitHub to enable access for Travis CI
  4. Go to coveralls.io, sign in with GitHub credentials and add your repo there as well. Grab the repo token and insert it into the COVERALLS_REPO_TOKEN variable in the Dockerfile
  5. Once Travis is allowed access, try to manually trigger a build and see that it runs to completion
  6. Change the badges to point to this repo instead of my fork by replacing bjfultn --> shbhuk in README.md
bjfultn commented 3 years ago

You can also set this up so that it automatically pushes to pipy if it detects a new commit to master, or a new tag, or however you want to set it up. See the deploy section of the .travis.yml file in https://github.com/California-Planet-Search/radvel for an example of pushing when a new tag is detected.

shbhuk commented 3 years ago

This is really cool, thank you!! I'll take a look and modify it.

shbhuk commented 3 years ago

I was having some issue getting docker started, but for now I've at least integrated Travis CI, will then add coveralls. Thanks for suggesting and showing this!