.travis.yml 904 Bytes
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"
Bardi Harborow's avatar
Bardi Harborow committed
8
  - "8"
9
before_install:
Bardi Harborow's avatar
Bardi Harborow committed
10
  - if [[ `npm -v` != 5* ]]; then npm install -g npm@5; fi
11
  - "export TRAVIS_COMMIT_MSG=\"`git log --format=%B --no-merges -n 1`\""
Bardi Harborow's avatar
Bardi Harborow committed
12
  - echo "$TRAVIS_COMMIT_MSG" | grep '\[skip browser\]'; export TWBS_DO_BROWSER=$?; true
13
install:
14
  - bundle install --deployment --jobs=3 --retry=3
15
  - npm install
Bardi Harborow's avatar
Bardi Harborow committed
16
17
18
script:
  - npm test
  - if [ "$TWBS_TEST" = browser -a "$SAUCE_ACCESS_KEY" ]; then npm run js-test-cloud; fi
19
after_success:
Bardi Harborow's avatar
Bardi Harborow committed
20
  - if [ "$TRAVIS_REPO_SLUG" = twbs-savage/bootstrap ]; then npm run docs-upload-preview; fi
21
22
23
24
cache:
  directories:
    - node_modules
    - vendor/bundle
25
env:
26
  - TWBS_TEST=core
Bardi Harborow's avatar
Bardi Harborow committed
27
  - TWBS_TEST=browser
28
matrix:
29
30
  exclude:
    - node_js: "4"
Bardi Harborow's avatar
Bardi Harborow committed
31
      env: TWBS_TEST=browser
Mark Otto's avatar
Mark Otto committed
32
33
notifications:
  slack: heybb:iz4wwosL0N0EdaX1gvgkU0NH
34
35
  webhooks:
    - http://savage.twbsapps.com/savage/travis