crossbeam-arccell icon indicating copy to clipboard operation
crossbeam-arccell copied to clipboard

add CI

Open BurntSushi opened this issue 7 years ago • 4 comments

Would you be amenable to adding CI to this project that runs tests automatically?

BurntSushi avatar Aug 07 '18 11:08 BurntSushi

Yeah, for sure!

I've never used Travis CI so I'll have to do some research on that, but I'm certainly amenable to setting this up.

k3d3 avatar Aug 07 '18 13:08 k3d3

Ah it's pretty easy! Here's the condensed version:

  • Add a .travis.yml file to the root of your repo. Here's an example.
  • The aforementioned example calls ci/script.sh, which can just be where you call cargo test. Here's an example.
  • Once that's done, go to Travis CI and setup an account. You'll probably need to authorize it with GitHub.
  • Finally, go to your profile on Travis CI, find your crossbeam-arccell repository, and enable it.

And that should be it!

BurntSushi avatar Aug 07 '18 13:08 BurntSushi

An alternative solution is to push .travis.yml to the root directory with the following contents:

language: rust

rust:
  - stable
  - beta
  - nightly

Then go to the project page, click "Settings", then "Integrations & services", then "Add service", and select "Travis CI".

EDIT: Per @BurntSushi's suggestion, you can add a specific version to the rust section, too. For example:


language: rust

rust:
  - stable
  - beta
  - nightly
  - 1.25.0

ghost avatar Aug 07 '18 14:08 ghost

Please also include at least one specific Rust version to pin to. (stable, beta and nightly are all moving targets.)

BurntSushi avatar Aug 07 '18 14:08 BurntSushi