Sign inSign up

nubisproject/nubis-travis

By nubisproject

Updated over 8 years ago

Travis checks container

Image
0

2.5K

nubisproject/nubis-travis repository overview

nubis-travis

GitHub release

This is a collection of lint checks that we use for automatically linting code through TravisCi.

Local Usage

You can run the lint checks yourself using docker. Hint: Check out the release version badge at the top.


docker run --mount type=bind,source="$(pwd)",target=/nubis/files nubisproject/nubis-travis:vX.X.X

Using in your repository

To use in your repository you will need to create a .travis.yaml file in the root directory containing:


sudo: required

language: ruby

services:
  - docker

before_install:
  - docker pull nubisproject/nubis-travis:master

script:
  - docker run --mount type=bind,source="$(pwd)",target=/nubis/files nubisproject/nubis-travis:master

Once you have committed that file you need to enable the travis integration on GitHub. Go to your repository settings page, under 'Branches' -> 'Protected Branches' select a branch and click 'Require status checks to pass before merging' and then choose the 'continuous-integration/travis-ci' status check.

Finally, under your TravisCi profile you will need to turn on the check for the repository. There are plentyof instructions online that are far more detailed than this.

Fin

Hopefully that got you where you need to be. If you run into any issue or have any trouble feel free to reach out to us. We are happy to help and are quite interested in improving the project in any way we can. We are on mozilla.slack.com in #nubis-users or you can reach us on the mailing list at nubis-users[at]googlegroups.com

Tag summary

Content type

Image

Digest

Size

211.2 MB

Last updated

over 8 years ago

docker pull nubisproject/nubis-travis:develop