-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
59 lines (47 loc) · 2.06 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
---
language: node_js
node_js:
- "6"
sudo: false
env:
global:
- secure: "oCCmA7JO9lMRS0zAGIEcydqNvfCCB3IJmS+NOEnjyb3UFS21bsne/CVOc6D+bkrNDPbpTJmy4M4wWuzugz6oYkJNAFAH83oNx+WdHBhyn18aOoc51LaPGHUGM9vSNG6B6ZWWH6dbW5qEyMob3bc4sjaKHhffJ7+iruYmn9+zB5kF5dkvnXUd85cwAwxRyW3ZyyFZy1iX4HKVu/ZqA5STcB9hqj/cZ9z9MXcmWp7VegoHMgRHcwj1zrz+c2Sy1N1+PkFuD0UaUlXWnSuMYmSmN0RMsi9ustcwM2tfCtSwuw7DOE557bFeVbC7wvjC8TReHABIT5TgQQ8bqFFfO2h2KsjBZ8DzL934gZvktxEfrKMNZCmrxGn/YkYeb9hrieZuAqM2TKsUnWLsJgSl8iVBwzoRNHy6XTvgRhzXNSf6s9IuH1ELka2pyf3nVthdvDfrDz1HGPjr7NetK8r27SetNGq++FCRCtRCCh/AfhfA0+8bIfxPFYPSB7zY4mtgczqAR1i6kc9A1h9aQBThmAVS8TQZDY4fiZNBiOK9dJi0mvY2IYoMMAgErD3y/rxfNfhSb1jeDls8jLNiEmU3wa0iI+GXV6J4qQd5/axw83kiY7e1/E9O+Y8VcJXbAqvRmmGrpdxPuBamw/6GgPELi0v3j3H0DECwHoSQzqA8L6PABOc="
cache:
directories:
- $HOME/.cache # includes bowers cache
yarn: true
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH=$HOME/.yarn/bin:$PATH
- yarn global add phantomjs-prebuilt
- phantomjs --version
- yarn global add bower
- bower --version
install:
- yarn install
- bower install
script:
- yarn test
after_success:
- |
declare -r SSH_FILE="$(mktemp -u $HOME/.ssh/XXXXX)"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Decrypt the file containing the private key
# (Note: this is the same as what is generated by the Travis CLI at step 2.5)
openssl aes-256-cbc \
-K $encrypted_0932a870370d_key \
-iv $encrypted_0932a870370d_iv \
-in ".travis/github_deploy_key.enc" \
-out "$SSH_FILE" -d
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Enable SSH authentication
chmod 600 "$SSH_FILE" \
&& printf "%s\n" \
"Host github.com" \
" IdentityFile $SSH_FILE" \
" LogLevel ERROR" >> ~/.ssh/config
- |
git config --global user.email "[email protected]"
git config --global user.name "Travis Bot"
- |
if [ "$TRAVIS_BRANCH" = "master" ] && [ "$TRAVIS_PULL_REQUEST" = "false" ]; then ember deploy production; fi