forked from mike-north/ember-material-lite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
67 lines (57 loc) · 2.13 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
56
57
58
59
60
61
62
63
64
65
66
67
---
language: node_js
node_js:
- "0.12"
sudo: false
cache:
directories:
- node_modules
env:
- EMBER_TRY_SCENARIO=ember-1.13
- EMBER_TRY_SCENARIO=ember-2.0
- EMBER_TRY_SCENARIO=ember-2.1
- EMBER_TRY_SCENARIO=ember-2.2
- EMBER_TRY_SCENARIO=ember-2.3
- EMBER_TRY_SCENARIO=ember-2.4
- EMBER_TRY_SCENARIO=ember-release
- ALLOW_DEPRECATIONS=true EMBER_TRY_SCENARIO=ember-beta
- ALLOW_DEPRECATIONS=true EMBER_TRY_SCENARIO=ember-canary
matrix:
fast_finish: true
allow_failures:
- env: ALLOW_DEPRECATIONS=true EMBER_TRY_SCENARIO=ember-beta
- env: ALLOW_DEPRECATIONS=true EMBER_TRY_SCENARIO=ember-canary
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
script:
- ember try:one $EMBER_TRY_SCENARIO test --skip-cleanup
after_script:
- sed -i -- 's/SF:ember-material-lite\/\(.*\)/SF:addon\/\1.js/' lcov.dat
- cat lcov.dat | coveralls
after_success:
# Remove the downloaded copy of phantomJS
- rm -rf travis-phantomjs
# Add a remote, authenticating via an OAuth token (encrypted via "travis secure")
- git remote add deploy https://$GH_TOKEN:[email protected]/mike-north/ember-material-lite.git 2>&1 >/dev/null
# Download all branches from this new remote (really the same remote, but different auth)
- git fetch deploy
# Check out a local copy of "master", but don't switch to it yet
- git branch gh-pages deploy/gh-pages
# Set up some required git config stuff (more env variables encrypted via "travis secure")
- git config user.name "Mike North"
- git config user.email "[email protected]"
# Generate the github pages. When this command is finished I'll be on "master" branch with a
# new commit already made (but not pushed)
# Push the new commit
- /bin/bash lib/try-generate-pages.sh
- git checkout master