-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
34 lines (34 loc) · 1.24 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
language: node_js
node_js:
- '0.10'
notifications:
irc: "irc.freenode.org#generator-travis-ci"
branches:
only:
- master
env:
global:
- secure: "GX7QlOBN0bJ3MW95+2C089rwbdDhKisiZyC5A9Uo4Y97RXAf3Aa02AlWTfHBo2St0/k1u8zf5j+JfQ5UjrgSO4QiTVDqoL5O/N18J18a7N/zepIY5zfsyt8shZ9W8uHDpPoDXbFG7sUFd2qyr1QuoV+Ljp+87ehfRHHXAX97m8c="
- GH_OWNER: mysterycommand
- GH_PROJECT_NAME: famous-hackathon-2014
before_script:
- gem update --system
- gem install compass
- currentfolder=${PWD##*/}
- if [ "$currentfolder" != 'generator-famous' ]; then cd .. && eval "mv $currentfolder generator-famous" && cd generator-famous; fi
- npm install -g grunt-cli bower
script:
- bower install
- grunt
after_success:
- git submodule add -b gh-pages https://${GH_OAUTH_TOKEN}@github.com/${GH_OWNER}/${GH_PROJECT_NAME} site > /dev/null 2>&1
- cd site
- if git checkout gh-pages; then git checkout -b gh-pages; fi
- git rm -r .
- cp -R ../dist/* .
- cp ../dist/.* .
- git add -f .
- git config user.email "[email protected]"
- git config user.name "Matt Hayes"
- git commit -am "adding the yeoman build files to gh-pages [ci skip]"
- git push https://${GH_OAUTH_TOKEN}@github.com/${GH_OWNER}/${GH_PROJECT_NAME} HEAD:gh-pages > /dev/null 2>&1