Skip to content

Commit

Permalink
New travis
Browse files Browse the repository at this point in the history
  • Loading branch information
jensenbox committed Oct 23, 2017
1 parent 15d2b25 commit c7f68c1
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 singularitynet_agent /bin/sh -c "py.test --verbose --cov-config agent/.coveragerc --cov=sn_agent 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)
recreate_agent_image
docker-compose run agent ./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 c7f68c1

Please sign in to comment.