.travis.yml 1.09 KB
Newer Older
1
sudo: false
2
dist: trusty
Chris Aniszczyk's avatar
Chris Aniszczyk committed
3
language: node_js
4
git:
5
  depth: 3
Chris Aniszczyk's avatar
Chris Aniszczyk committed
6
node_js:
7
  - "4"
8
  - "6"
9
before_install:
10
11
  - if [[ `npm -v` != 3* ]]; then npm install -g npm@3; fi
  - "export TRAVIS_COMMIT_MSG=\"`git log --format=%B --no-merges -n 1`\""
12
13
  - echo "$TRAVIS_COMMIT_MSG" | grep '\[skip validator\]'; export TWBS_DO_VALIDATOR=$?; true
  - echo "$TRAVIS_COMMIT_MSG" | grep '\[skip sauce\]'; export TWBS_DO_SAUCE=$?; true
14
  - if [ "$TRAVIS_REPO_SLUG" = twbs-savage/bootstrap ]; then export TWBS_DO_VALIDATOR=0; fi
15
install:
16
  - bundle install --deployment --jobs=3 --retry=3
17
  - cp grunt/npm-shrinkwrap.json ./
18
  - npm install
19
20
after_success:
  - if [ "$TWBS_TEST" = sauce-js-unit ]; then grunt/upload-preview.sh; fi
21
22
23
24
cache:
  directories:
    - node_modules
    - vendor/bundle
25
    - "$HOME/google-cloud-sdk"
26
env:
27
28
29
  - TWBS_TEST=core
  - TWBS_TEST=validate-html
  - TWBS_TEST=sauce-js-unit
30
matrix:
31
32
33
34
35
  exclude:
    - node_js: "4"
      env: TWBS_TEST=validate-html
    - node_js: "4"
      env: TWBS_TEST=sauce-js-unit
Mark Otto's avatar
Mark Otto committed
36
37
notifications:
  slack: heybb:iz4wwosL0N0EdaX1gvgkU0NH
38
39
  webhooks:
    - http://savage.twbsapps.com/savage/travis