-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
53 lines (53 loc) · 2.01 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
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 FactorBase.jar > jar.txt
- tail jar.txt
- ls -lh
- tail dag_.txt
- 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 8m
- ls -lh d.txt
- sleep 8m
- ls -lh d.txt
- echo 'FunctorWrapper cannot finish in 2 hours, to save time, kill it.'
- tail a.txt
- tail b.txt
- tail c.txt
- tail d.txt
- tail dag_.txt
after_script:
- mysql -e "show databases;" -uroot -p123456
- mysql -e "use unielwin_BN; show tables;" -uroot -p123456
- mysql -e "use unielwin_CT; show tables;" -uroot -p123456
- mysql -e "use Mutagenesis_std_target_final_CT; show tables;" -uroot -p123456
- mysql -e "use Mutagenesis_std_target_final; show tables;" -uroot -p123456
- mysql -e "use Mutagenesis_std_target_CT; show tables;" -uroot -p123456
- mysql -e "use Mutagenesis_std_target_BN; show tables;" -uroot -p123456
- mysql -e "use Mutagenesis_std_target; show tables;" -uroot -p123456