-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
41 lines (35 loc) · 1.46 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
language: java
jdk:
- oraclejdk8
dist: trusty
sudo: required
addons:
apt:
packages:
- mysql-server-5.6
- mysql-client-core-5.6
- mysql-client-5.6
before_script:
- mysql -u root -e "CREATE DATABASE Test3;
USE Test3;
CREATE TABLE PLAYER_DB
(name VARCHAR(255) not NULL,
password VARCHAR(255) not NULL,
no_points INTEGER,
PRIMARY KEY ( name ))ENGINE=InnoDB;
CREATE TABLE MATCHES_DB
(id_match INTEGER not NULL AUTO_INCREMENT,
winner VARCHAR(255),
no_players INTEGER not NULL,
duration DOUBLE(10, 5) not NULL,
PRIMARY KEY ( id_match )) ENGINE=InnoDB;
CREATE TABLE ATTEND
(id_match INTEGER not NULL REFERENCES
MATCHES_BD(id_match) ON DELETE CASCADE ON UPDATE CASCADE,
player_name VARCHAR(255) not NULL REFERENCES
PLAYER_BD(name) ON DELETE CASCADE ON UPDATE CASCADE,
PRIMARY KEY ( id_match, player_name ))ENGINE=InnoDB;"
- cd BattleAIMaven
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start