forked from Teleopti/styleguide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (33 loc) · 1.02 KB
/
.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
27
28
29
30
31
32
33
34
35
language: node_js
node_js:
- 4.2.6
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.8
- g++-4.8
before_install:
# Use GCC 4.8 if it's available
- 'if [ ! `which gcc-4.8` == "" ]; then export CXX=g++-4.8 && export CC=gcc-4.8; fi'
- npm config set registry https://registry.npmjs.org/
- npm install -g grunt-cli
install: npm install
before_script: grunt dist --verbose
script:
- ./node_modules/.bin/karma start --single-run --browsers PhantomJS
- if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then bash ./deploy-ghpages.sh; fi
env:
global:
- GH_REF: github.com/Teleopti/styleguide.git
- secure: d9ejf1F4Q+kIhKVfaReYlW3itLeMmQzcuJH4vM/LffzJb/PusyI+mMBmo4Bc4h3GmkJEjCb78nrxjzRFZeG3C7C4jOgg2NGGIwQzpHoKcziwmfpX8BgFTnBU6VlmLUBnNxOINppLV6glMR0kHK6o/KLrKC56xKzHX4/yYrXcPdQ=
notifications:
slack: teleopti:mStgbDoxN1zPMMc27nL6kNRw
deploy:
provider: npm
username: 'teleopti_travis'
email: $email
api_key: $token
on:
tags: true