forked from VertaAI/modeldb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
116 lines (95 loc) · 3.36 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
sudo: required
dist: trusty
language: python
python: "3.5"
addons:
apt:
packages:
# - thrift-compiler
- docker
before_install:
- sudo docker run -d --name mongo -p 27017:27017 mongo:latest
- docker ps
- sudo apt-get install -y sqlite
- sudo apt-get install -y maven
- sudo apt-get install -y nodejs
# install sbt
- echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
- sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823
- sudo apt-get update
- sudo apt-get install sbt
# install thrift
- cd ~/
- wget -q http://archive.apache.org/dist/thrift/0.10.0/thrift-0.10.0.tar.gz &>/dev/null
- tar -xzf thrift-0.10.0.tar.gz &>/dev/null
- cd ~/thrift-0.10.0
- sudo ./configure --without-python --without-java --without-ruby
- sudo make
- sudo ln -n ~/thrift-0.10.0/compiler/cpp/thrift /usr/local/bin/thrift
install:
# do pip installs, set pythonpath
- pip install -r $TRAVIS_BUILD_DIR/client/python/requirements.txt
- export PYTHONPATH=$TRAVIS_BUILD_DIR/client/python:$PYTHONPATH
# gen_sqlite
- cd $TRAVIS_BUILD_DIR/server/codegen
- sh ./gen_sqlite.sh
# build python client
- cd $TRAVIS_BUILD_DIR/client/python
- ./build_client.sh
# build scala client
- cd $TRAVIS_BUILD_DIR/client/scala/libs/spark.ml
- ./build_client.sh
# start server
- cd $TRAVIS_BUILD_DIR/server
- ./start_server.sh 0.10.0
- /bin/sleep 30
# # start frontend
# - cd $TRAVIS_BUILD_DIR/frontend
# - ./start_frontend.sh
before_script:
- export PYTHONPATH=$TRAVIS_BUILD_DIR/client/python:$PYTHONPATH
- /bin/netstat -tlpn
script:
# scala sbt tests
- echo =================== SEVER TESTS ===================
- cd $TRAVIS_BUILD_DIR/server
- mvn test -Dtest=TestAncestryComputer -Dthrift_version=0.10.0
- /bin/sleep 10
- mvn test -Dtest=TestBasicConnection -Dthrift_version=0.10.0
- /bin/sleep 10
- mvn test -Dtest=TestCrossValidation -Dthrift_version=0.10.0
- /bin/sleep 10
- mvn test -Dtest=TestDataFrame -Dthrift_version=0.10.0
- /bin/sleep 10
- mvn test -Dtest=TestEvent -Dthrift_version=0.10.0
- /bin/sleep 10
- mvn test -Dtest=TestExperiment -Dthrift_version=0.10.0
- /bin/sleep 10
- mvn test -Dtest=TestExperimentRun -Dthrift_version=0.10.0
- /bin/sleep 10
- mvn test -Dtest=TestFeatures -Dthrift_version=0.10.0
- /bin/sleep 10
- mvn test -Dtest=TestFitEvent -Dthrift_version=0.10.0
- /bin/sleep 10
- mvn test -Dtest=TestGridSearchCrossValidation -Dthrift_version=0.10.0
- /bin/sleep 10
- mvn test -Dtest=TestPipelineEvent -Dthrift_version=0.10.0
- /bin/sleep 10
- mvn test -Dtest=TestProject -Dthrift_version=0.10.0
- /bin/sleep 10
- mvn test -Dtest=TestTransformer -Dthrift_version=0.10.0
- /bin/sleep 10
- mvn test -Dtest=TestTransformerSpec -Dthrift_version=0.10.0
- /bin/sleep 10
- mvn test -Dtest=TestTransformEvent -Dthrift_version=0.10.0
- /bin/sleep 10
- mvn test -Dtest=TestTreeModels -Dthrift_version=0.10.0
- /bin/sleep 10
- echo =================== CLIENT TESTS ===================
- echo ------------------- SCALA TESTS -------------------
- cd $TRAVIS_BUILD_DIR/client/scala/libs/spark.ml
- sbt test
- echo ------------------- PYTHON TESTS -------------------
- cd $TRAVIS_BUILD_DIR/client/python/modeldb/tests/sklearn
- python --version
- python -m unittest discover .