-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
45 lines (45 loc) · 1.88 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:
- 6.7.0
sudo: false
cache:
directories:
- node_modules
- "$HOME/google-cloud-sdk/"
env:
- CXX=g++-4.8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
before_install:
- npm config set spin false
- npm install -g bower
- bower --version
- npm install phantomjs-prebuilt
- phantomjs --version
after_success:
- openssl aes-256-cbc -K $encrypted_25555bb76dbd_key -iv $encrypted_25555bb76dbd_iv
-in credentials.tar.gz.enc -out credentials.tar.gz -d
- gcloud version || true
- if [ ! -d "$HOME/google-cloud-sdk/bin" ]; then rm -rf $HOME/google-cloud-sdk; export
CLOUDSDK_CORE_DISABLE_PROMPTS=1; curl https://sdk.cloud.google.com | bash; fi
- source $HOME/google-cloud-sdk/path.bash.inc
- export GOOGLE_APPLICATION_CREDENTIALS=client-secret.json
- export GCLOUD_PROJECT=global-ember-meetup-frontend
- gcloud version
- tar -xzf credentials.tar.gz
- mkdir -p lib
- gcloud auth activate-service-account --key-file client-secret.json
- gcloud config set project 'global-ember-meetup-frontend'
- test $TRAVIS_BRANCH = "master" && npm run deploy
install:
- npm install
- bower install
script:
- npm test
notifications:
slack:
secure: FO+utM7EeHhsaQCt/uSYWSnh+fdgHoNFL9ySQsabcv6jPd41TQktPUSFl8ZUWSl6VnnQ6zJguew3KGG92iDbrApHOXeBzKy0gxeJDXVBW+74XhLsVZMRy6el6YlNHAqDlKsSA57iFEWyhSGU0TiCbWtzLJDyFviduaVIt5v7XuyDRFIo8J6df1MaLLW9z5JQ1x94gGRdAx/dYInSTi5UyuVBH0bUejxUrR1W2CfWpduIV+xlkBxPQVkWvT/gbvn6pNclv4OGEHXAMZCbZiFssXEhZmK/fmbp6WMGScZuQ8AlQxJOA10R1zLKTyIn0lPbVEppqYPTzHwbgsLNqO/GV1ejyafjBwwx3mlxT6Yj9SrDzmDsPgPzwAWbnPaf/7tiVYRkwnq+8HxtQl1Kp+HC8LZpugzABYotnSUQajDGR3B1skHdPEt+fJjHW36Q2UrQjR+xWt64xvMlEiH1ae+nmd0nYo+g+k/dbgNsSpe/HfjCnaDRLmd+fsWfMMjTFtI5I8DhyZH39oXKNDXa+KQ6uaWxnAnmE+QByGPN9/ZtesiENt/G8/MhuVII3QFP9njD1FOXyvEB+/ATTeKB0SffIJoq7kAzuCH80BSlNWoLOh1m+rcvxgkaJJHqPZwqzg/pZjn+yk+x0NBe1yrfnty6yPaRWJsN7/pKbuhzA4q88Nw=