forked from Open-RSC/Core-Framework
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
executable file
·29 lines (24 loc) · 894 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
sudo: required
language: java
env:
DOCKER_COMPOSE_VERSION: 1.22.0
services:
- docker
jdk:
- oraclejdk8
before_install:
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
- docker-compose -v
- docker -v
- sudo service mysql stop
script:
- sudo docker-compose --file docker-compose-travis.yml up -d
- sudo docker-compose -f docker-compose-travis.yml ps
- sudo ant -f server/build.xml compile_core
- sudo ant -f server/build.xml compile_plugins
- sudo ant -f client/build.xml compile
- sudo ant -f Launcher/build.xml compile
- sudo docker exec -i mysql mysql -u"root" -p"root" < Databases/openrsc_game_server.sql
- sudo docker exec -i mysql mysql -u"root" -p"root" < Databases/openrsc_game_players.sql