-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
55 lines (44 loc) · 1.68 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
46
47
48
49
50
51
52
53
54
55
---
language: node_js
node_js: stable
env:
- EMBER_VERSION=default
# - EMBER_VERSION=release
# - EMBER_VERSION=beta
# - EMBER_VERSION=canary
matrix:
allow_failures:
# - env: EMBER_VERSION=release
# - env: EMBER_VERSION=beta
# - env: EMBER_VERSION=canary
fast_finish: true
addons:
sauce_connect: true
sudo: false
cache:
branch: md5deep
directories:
- node_modules
before_install:
- "npm config set spin false"
- "npm install -g npm@^2"
- 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
install:
- npm install -g bower
- npm install
- bower install
script:
- ember try $EMBER_VERSION
notifications:
campfire:
secure: "JJezWGD9KJY/LC2aznI3Zyohy31VTIhcTKX7RWR4C/C8YKbW9kZv3xV6Vn11\nSHxJTeZo6st2Bpv6tjlWZ+HCR09kyCNavIChedla3+oHOiuL0D4gSo+gkTNW\nUKYZz9mcQUd9RoQpTeyxvdvX+l7z62/7JwFA7txHOqxbTS8jrjc="
# FIXME this needs refinement, obvs
after_success:
- "echo $TRAVIS_PULL_REQUEST"
- "curl -sH \"Authorization: token $GITHUB_TOKEN\" https://api.github.com/repos/travis-ci/travis-web/pulls/$TRAVIS_PULL_REQUEST"
- "export TRAVIS_PULL_REQUEST_BRANCH=`curl -sH \"Authorization: token $GITHUB_TOKEN\" https://api.github.com/repos/travis-ci/travis-web/pulls/$TRAVIS_PULL_REQUEST | grep -A 2 \"\\\"head\\\"\" | grep ref | cut -d '\"' -f4`"
- "echo $TRAVIS_PULL_REQUEST_BRANCH"
- "test $EMBER_VERSION == 'default' && test $TRAVIS_PULL_REQUEST && ember deploy pull-request --activate --verbose"