-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
55 lines (46 loc) · 1.33 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
sudo: required
dist: trusty
addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
language: node_js
node_js:
- '6.11'
# Should skip the install phase
# install: true
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sleep 3
# - npm install -g webdriver-manager
# - webdriver-manager update
# - ./node_modules/protractor/bin/install_selenium_standalone
# - nohup bash -c "./nodemodules/protractor/bin/webdriver-manager start 2>&1 &"
# - sleep 5
# - wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
# - sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
# - sudo apt-get update -q
# - sudo apt-get install -q google-chrome-stable
install:
- npm install
- node_modules/protractor/bin/webdriver-manager update
script:
- echo "Triggered through push!"
- gulp protractor-test
# after_success:
# - TRAVIS_MAIN_FOLDER=./travis
# - TRAVIS_FTP_SCRIPT=$TRAVIS_MAIN_FOLDER/ftp-deployer.sh
# - chmod ugo+x $TRAVIS_FTP_SCRIPT
# - $TRAVIS_FTP_SCRIPT
# after_failure
# before_deploy
# deploy
# after_deploy
# after_script
#
# Deploy phase avoiding to change all the things done during the script intall phases
# deploy:
# skip_cleanup: true