forked from salesforce-ux/design-system
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
26 lines (26 loc) · 994 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
language: node_js
node_js:
- "4.2"
before_install:
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- rvm install 2.2.2
- npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
install:
- bundle install --path vendor/bundle
- npm install
script:
# Run "test" after "build" because the build task cleans temporary directories.
# Build-server is a requirement for a passing travis run so keep it here. Also, must chain with && or does not guarentee successful build
- npm run lint && npm run build && npm run test && npm run build-server
after_success:
- export SHA=`git rev-parse --short HEAD`
- if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then curl https://$VISUALTEST_USERNAME:[email protected]/ci/$SHA ; fi
cache:
directories:
- node_modules
- vendor/bundle
addons:
code_climate:
repo_token: 1035e50117ef54a8d8d028a87bdf93ad26804012105ce5ac5db3a4b4398d2fad