Skip to content

Commit

Permalink
Merge branch 'master' into jensenbox-dht
Browse files Browse the repository at this point in the history
  • Loading branch information
jensenbox authored Oct 24, 2017
2 parents fc5f05e + add15b1 commit bee0e55
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 17 deletions.
22 changes: 7 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,18 @@
sudo: required

language: python
services:
- docker

python:
- "3.6"
env:
global:
- PYTHONPATH=$PYTHONPATH:$(pwd)/agent
- SN_AGENT_ID=b545478a-971a-48ec-bc56-4b9b7176799c
- SN_SERVICE_ADAPTER_CONFIG_FILE=agent/service_adapter_config_example.yml

install:
- pip install -r agent/requirements.txt
- git clone --branch 1.3.6 https://github.com/savoirfairelinux/opendht.git
- cd opendht
- mkdir build
- cd build
- cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DOPENDHT_PYTHON=On -DOPENDHT_LTO=On
- make -j8
- make install
before_install:
- docker build -t singularitynet_agent agent

script:
- py.test --verbose --cov-config agent/.coveragerc --cov=sn_agent agent/tests
- docker run -e SN_SERVICE_ADAPTER_CONFIG_FILE=/code/agent/service_adapter_config_example.yml singularitynet_agent /bin/sh -c "export PYTHONPATH=$PYTHONPATH:/code/agent;py.test --verbose --cov-config .coveragerc --cov=sn_agent tests"

after_success:
- coveralls
- docker run singularitynet_agent /bin/bash -c "coveralls"
8 changes: 6 additions & 2 deletions tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,12 @@ agent-docs)
;;

agent-test)
docker-compose create --build --force-recreate test
docker-compose run test ./agent.sh test
docker-compose create --build --force-recreate alice
docker-compose run alice ./agent.sh test
;;

travis-test)
py.test --verbose --cov-config agent/.coveragerc --cov=sn_agent agent/tests
;;

agent-web)
Expand Down

0 comments on commit bee0e55

Please sign in to comment.