forked from Dash-Industry-Forum/dash.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (42 loc) · 1.22 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
language: node_js
node_js:
- stable
addons:
browserstack:
username: epiclabsdash1
access_key:
secure: v5IPr/NWJT6QEA1lyMn08dsiTEXqL0zb/lB9b7FcpGB08+5fC4KbyBv/xIWQy/j9RMX19tqDgPjGl8lRGYOApcoeIbNE6/5XzdHxFD1zwDDBeyuoXyRRKVrtFoDfYAcmfVJFAP8bcLZXu6mhjO1EYaD0//s4URmb6VlPGTiP5w0=
sudo: false
cache:
directories:
- node_modules
stages:
- name: build
# Run build stage except if cron job
if: type != cron
- name: test-functional
# Run functional tests only if cron job
if: type = cron
before_install: npm install -g grunt-cli
after_success:
- test $TRAVIS_BRANCH = "development" && grunt deploy --git-commit=$TRAVIS_COMMIT --ftp-host=$DEPLOY_HOST --ftp-user=$DEPLOY_USER --ftp-pass=$DEPLOY_PASSWORD
install:
- npm install
jobs:
include:
# Stage for build
- stage: build
script: npm run build
# Stages for functional tests
- stage: test-functional
env: BROWSER=chrome
script: npm run test-functional
- stage: test-functional
env: BROWSER=firefox
script: npm run test-functional
- stage: test-functional
env: BROWSER=edge
script: npm run test-functional
#- stage: test-functional
# env: BROWSER=ie
# script: npm run test-functional