-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
74 lines (62 loc) · 1.68 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
language: java
jdk:
- oraclejdk8
os:
- linux
dist: trusty
before_install:
#load all submodules
- git submodule init
- git submodule update
#update all repo lists
- sudo apt-get update -y
#install curl for tomcat tests
- sudo apt-get install curl -y
# get thrift 0.9.3
- wget "https://www.dropbox.com/s/u4prfzehb94xo9n/thrift"
- wget "https://www.dropbox.com/s/ydbf9ghsl6lv5dl/libthrift-0.9.3.jar"
- chmod 755 thrift
- sudo cp thrift /usr/local/bin/thrift
- sudo cp libthrift-0.9.3.jar /usr/local/lib
#fake random with urandom (do not repeat it on your own computer)
- sudo rm /dev/random
- sudo mknod /dev/random c 1 9
# for gui tests
- export CHROME_BIN=/usr/bin/google-chrome
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- 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
install:
#install and run tests and run style checking
- mvn install -P travis
- cd ui-testing
- mvn install -DskipTests
- cd ..
script:
#run services
- cd db-services
- cd db-diagram-service
- mvn exec:java -P travis &
- sleep 15
- cd ../db-user-service
- mvn exec:java -P travis &
- sleep 15
- cd ../db-robot-store-service
- mvn exec:java -P travis &
- sleep 15
- cd ../../auth-service
- mvn tomcat7:run-war-only -P travis &
- sleep 30
- cd ../dashboard-service
- mvn tomcat7:run-war-only -P travis &
- sleep 30
- cd ../editor-service
- mvn tomcat7:run-war-only -P travis &
- sleep 30
- cd ../ui-testing
- mvn test -P travis &
- sleep 30
notifications:
slack: qreal-web:sT5qgA4qZZ9eyLI0yy2Mp81E