-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
39 lines (38 loc) · 1.42 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
sudo: required
dist: trusty
language: node_js
node_js:
- "4.4"
before_install:
- export CHROME_BIN=/usr/bin/google-chrome
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sleep 3
# - nohup bash -c "webdriver-manager start --standalone 2>&1 &"
- sudo apt-get update
- sudo apt-get install -y libappindicator1 fonts-liberation
- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
- sudo dpkg -i google-chrome*.deb
- gem update --system
- gem install compass
- sleep 5
before_script:
- 'npm install -g bower karma grunt-cli jshint'
- 'npm install -g karma-chrome-launcher --save-dev'
- 'npm install --save-dev karma-phantomjs-launcher'
- 'npm install --save jpegtran-bin'
- 'npm cache clean && npm install grunt-contrib-imagemin'
- 'npm install -g firebase-tools'
- 'npm install'
- 'bower install'
- node ./node_modules/protractor/bin/webdriver-manager update
# - node ./node_modules/grunt-protractor-runner/node_modules/protractor/bin/webdriver-manager update --standalone
- 'webdriver-manager start --standalone > /dev/null &'
# - node ./node_modules/grunt-protractor-runner/node_modules/protractor/bin/webdriver-manager start > /dev/null &
- sleep 5
script:
- 'grunt serve &'
- 'grunt test'
- 'grunt build'
after_success:
- if [ "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then firebase use default --token "${FIREBASE_TOKEN_CI}";firebase deploy --$