The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Limit Built Branches on Travis

Limit Built Branches on Travis

3:38
By default, Travis will build all branches, tags, and Pull Requests. Because we're building our master branch before we release, we don't need Travis building our releases. Also, we don't care to have Travis build all the branches. So we're going to limit Travis to only build our master branch and Pull Requests by configuring travis via our `.travis.yml` file.
Watch this lesson now
Avatar
egghead.io

By default, Travis will build all branches, tags, and Pull Requests. Because we're building our master branch before we release, we don't need Travis building our releases. Also, we don't care to have Travis build all the branches. So we're going to limit Travis to only build our master branch and Pull Requests by configuring travis via our .travis.yml file.

Avatar
Philip

Super awesome series, can't wait to get stuck into an open-source project!

In reply to egghead.io
Avatar
Richard Hoffmann

Hi Kent, thanks for the awesome series.

Currently with babel 6.0 i have a problem getting tests to pass in travis, it always fails with

Error: Cannot find module babel/register

I tried to add babel-cli as a before install script:

before_install:
  - npm i -g npm@^2.0.0
  - npm i -g babel-cli

but no luck so far. Do you have any idea how to fix this?

Thanks in advance,
Richard

Avatar
Kent C.

As I'm sure you're aware, babel 6.0 was just released last week and has many major breaking changes. I'm not certain what that means for this project. I'm afraid that I haven't had a moment to try things out yet. I'll let you know as soon as I figure out a solution for it (or you can if you figure it out first :-))

In reply to Richard Hoffmann
Avatar
fpaxton

I made a couple of comments on the previous two lessons that solved this for me.

In reply to Richard Hoffmann
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?