forked from sfu-cl-lab/FactorBase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
47 lines (47 loc) · 1.44 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
language: java
addons:
mariadb: '10.0'
jdk:
- oraclejdk8
before_script:
- mysql -e "use mysql; update user set password=PASSWORD('123456') where User='root'; flush privileges;" -uroot
- mysql -uroot -p123456 < testsql/unielwin_course.sql
- mysql -uroot -p123456 < testsql/unielwin_prof.sql
- mysql -uroot -p123456 < testsql/unielwin_RA.sql
- mysql -uroot -p123456 < testsql/unielwin_registration.sql
- mysql -uroot -p123456 < testsql/unielwin_student.sql
- mysql -uroot -p123456 < testsql/Mutagenesis_std_Atom.sql
- mysql -uroot -p123456 < testsql/Mutagenesis_std_bond.sql
- mysql -uroot -p123456 < testsql/Mutagenesis_std_Mole.sql
- mysql -uroot -p123456 < testsql/Mutagenesis_std_moleatm.sql
script:
- cd jar
- java -jar RunBB.jar
- ls
- cd ../src
- javac -cp ".:./lib/*" Config.java BZScriptRunner.java MakeSetup.java
- javac -cp ".:./lib/*" RunBB.java
- javac -cp ".:./lib/*" MakeTargetSetup.java
- javac -cp ".:./lib/*" FunctorWrapper.java
- mkdir src
- mv config.cfg src/
- mv scripts src/
- java -cp ".:./lib/*" MakeSetup > a.txt
- java -cp ".:./lib/*" RunBB > b.txt
- java -cp ".:./lib/*" MakeTargetSetup > c.txt
- nohup java -cp ".:./lib/*" FunctorWrapper > d.txt &
- sleep 5m
- ls -l d.txt
- sleep 5m
- ls -l d.txt
- sleep 5m
- ls -l d.txt
- sleep 5m
- ls -l d.txt
- sleep 5m
- ls -l d.txt
- sleep 5m
- ls -l d.txt
- ls
after_script:
- mysql -e "show databases;" -uroot -p123456