-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
33 lines (33 loc) · 924 Bytes
/
.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
language: java
jdk:
- oraclejdk8
before_install:
- npm install -g grunt-cli
- npm install -g bower
- npm install -g protractor
- npm install -g mocha
install:
- npm install
- bower install
- webdriver-manager update
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- curl -L http://selenium-release.storage.googleapis.com/2.42/selenium-server-standalone-2.42.2.jar > selenium.jar
- sudo ln -s /usr/lib/firefox/firefox /usr/lib/firefox/firefox-bin
script:
- grunt unit-test
- gradle flywayMigrate
- gradle build
- cd build/libs
- chmod a+x sbangular.jar
- "nohup java -jar sbangular.jar > ../../sbangular.log &"
- sleep 30
- cd ../../
- PATH=$PATH:/usr/lib/firefox java -jar selenium.jar > /dev/null 2> selenium_output.log &
- sleep 10
- grunt e2e
after_script:
# Print logs and outputs for debugging.
- cat selenium_output.log
- cat sbangular.log