-
Notifications
You must be signed in to change notification settings - Fork 14
/
.travis.yml
40 lines (35 loc) · 1.58 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
sudo: required
language: python
python:
- '3.6'
services:
- docker
before_install:
#- docker run -d -p 5000:5000 --name registry registry:2
- docker run -p 27017:27017 --name mongo3.6 -d mongo:3.6
- sleep 3
- mongo --eval "printjson(db.serverStatus())"
- sudo apt install ant
- mkdir $(pwd)/bin
- docker run kbase/kb-sdk genscript > $(pwd)/bin/kb-sdk
- chmod 755 $(pwd)/bin/kb-sdk
install:
- pip install -r requirements.txt
- pip install python-coveralls
- pip install coverage
- cd ..
- git clone https://github.com/kbase/jars
- docker images
- export PATH=$(pwd)/bin:$PATH
- cd catalog
script:
- cp -n test/test.cfg.example test/test.cfg
- sed -i 's/^nms-admin-toke.*/nms-admin-token = '$NMS_ADMIN_TOKEN'/' test/test.cfg
- make test
after_success:
- mv test/.coverage .
- coveralls
env:
global:
- secure: "o0xBDxPBVpqmezRtuDf4gdFYUIlFReH3kV1BOx75taCqzMvsvNnIDHzLITFTvGhNBzOT/hG/eEVDiKx/bnFoq0HJWsKYeKahOsiMlFavIR5jTIdMLq2zbZDkxV/+e0HoRRArWj53NV9wx0pWTv3DYxqbzPR1uu5letxdWnY3DQXggspcnJuAVYGn6LtgNM7MV+h3jdHe/E61LkwMff8KwpoBF+64AKbsZv1ddcFo0gbo9Z9CjLeBq4le2TwziLeuUYV885mPsRCvhToRMzpeVlbiNkzf7w5oh5g3FFsPOOYFeu22a+RrmKoM0hv9/pTTYG0G8/ylzOMIKWJvVrOJYptRvyQKmpmdcN7/CPYIQkf6ZBp0rP6G30Q2xt49+ST40ko1L0jhL42FfwXSmuNjklRMZAjpMNRZM2fIazEhDw3ND9l4T6HZnIwr/SQvKCs4rYBjqmSLo/dMISiFDLjWpMor5ew9fpZSLwJcPglGT0Anh4OIZUY2JGlO4TuOkq3m5kvXjjKLBc3Domd10c+DLfkldwwt6uqShsDECqFwSMf/liPEtLfi+03djrWvP26QeiEKL93ujAMS4oXAYxdquOy2Ib9ihd3XWTJzYc4s1H7furYqAbQDAhU0Dx3nvcyEsu5djdRAFe0eKUdjdAqsMAxe84h/EHZHrlE+KOOZo8s="
- MONGODB_VERSION=2.7