ruby-saddler icon indicating copy to clipboard operation
ruby-saddler copied to clipboard

Avoid building multi times

Open sanemat opened this issue 10 years ago • 2 comments

If set multiple envs, e.g.

rvm:
  - 1.9.3
  - 2.0.0
  - 2.1

This run saddler 3times :cry:

sanemat avatar Feb 25 '15 12:02 sanemat

If I'm in travis-ci, check TRAVIS_JOB_NUMBER like this.

#!/bin/bash
set -euv
if  [[ "${TRAVIS_JOB_NUMBER: -2}" == ".1" ]]; then
  # you want to do
fi

OR

#!/bin/bash
set -euv
if [[ "${TRAVIS_JOB_NUMBER}" =~ \.1$ ]]; then
  # you want to do
fi

sanemat avatar Sep 18 '15 03:09 sanemat

Need document.

sanemat avatar Sep 18 '15 03:09 sanemat