-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
45 lines (39 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
36
37
38
39
40
41
42
43
44
45
---
language: node_js
node_js:
- "0.12"
sudo: false
cache:
directories:
- node_modules
branches:
only:
- main
except:
- master
before_install:
- mkdir travis-phantomjs
- wget https://s3.amazonaws.com/travis-phantomjs/phantomjs-2.0.0-ubuntu-12.04.tar.bz2
-O $PWD/travis-phantomjs/phantomjs-2.0.0-ubuntu-12.04.tar.bz2
- tar -xvf $PWD/travis-phantomjs/phantomjs-2.0.0-ubuntu-12.04.tar.bz2 -C $PWD/travis-phantomjs
- export PATH=$PWD/travis-phantomjs:$PATH
- "npm config set spin false"
- "npm install -g npm@^2"
install:
- npm install -g bower
- npm install
- bower install
after_success:
- rm -rf travis-phantomjs
- git remote add deploy https://$GH_TOKEN:x-oauth-basic@github.com/venturehacked/venturehacked.github.io.git 2>&1 >/dev/null
- git fetch deploy
- git branch $GH_DEST_BRANCH deploy/$GH_DEST_BRANCH
- git config user.name $GIT_NAME
- git config user.email $GIT_EMAIL
- ./lib/try-generate-pages.sh
notifications:
email:
recipients:
- tracy@venturehacked.com
script:
- npm test