-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
46 lines (37 loc) · 1.4 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:
- "0.10"
notifications:
email:
recipients:
on_success: never
on_failure: always
# set sauce labs credentials
env:
global:
- secure: 'IndJScC1KSZ7Cc1XohiKiwaCnQFLT02DBaliSLpFHpD6rrcI3P+bw4VmqpzqvnH7jCaYFCGudqzgKtdZgF0mNJ2Uo7VKzybiPtNUx4jpgowG0bJPCLqkBOVkQJUOkX1hmFdletQRIlcCTgsnXihD42pmTZnDsfxC+0h2FUmJSc0='
- secure: 'DMW803T7RWE25ldhX73E/tqSWAZMaGUsd1dUbcxmXnU7OxpDPRSej2qtFJFHaYQi1inIL6zaKWD7Q5Mt6U5iueNvKtuDEabwjHw1Q2iwH/jLOKf0AtVvpQQJTBSIAzCDdqKTIwAnkFc5qRUuB1hphlrRhu7DVVZCVHZfuMIpAWI='
# starts xvfb on display port :99.0 (virtual Firefox)
before_install:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
# install dependencies necessary to run this build
install:
- npm install --quiet
# configure Travis CI to Start Sauce Connect and start application
before_script:
- curl https://gist.github.com/santiycr/5139565/raw/sauce_connect_setup.sh | bash
- node app.js &
- sleep 3 # give server some time to start
script:
- grunt test:unit
#- grunt protractor
#- grunt test:e2e
# deploy app to Heroku
#deploy:
# provider: heroku
# api_key:
# secure: fHBwL76Pyk9FhN6uxgRPw+0ZMAyt6MqJQen6a677cgL5nN+4B3G3rZdnfCaZFR7Mr2/TiwZjrOqWTiyalhem+cps45yTln20gF0SpF1UOF5sy2ANzh5fnaKWIG5o/8TU+g9sOKyD9rrQRVJc9zinxuYWfcc1x2MXjxJDVHJcMZ8=
# app: tweet-map