Merge pull request #9 from Orange-OpenSource/feature/add-mitmproxy-to-travis

Add mitmproxy to travis
This commit is contained in:
Fabrice Reix 2020-09-08 14:06:59 +02:00 committed by GitHub
commit e1db26aa8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,7 @@ jobs:
#cache: cargo
before_install:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update && brew install libxml2 jq; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update && brew install libxml2 jq mitmproxy; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get update && sudo apt install python3-pip; fi
before_script:
@ -23,7 +23,11 @@ before_script:
- python3 -V
- pip3 install Flask
- cd integration && python3 server.py&
- wget https://snapshots.mitmproxy.org/5.2/mitmproxy-5.2-linux.tar.gz -O - | tar -xz
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then wget https://snapshots.mitmproxy.org/5.2/mitmproxy-5.2-linux.tar.gz -O - | tar -xz; ./mitmdump & fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then mitmdump & fi
- sleep 2
- netstat -an | grep LISTEN | egrep '8000|8080'
- export VERSION=$(grep '^version' Cargo.toml | cut -f2 -d'"')
script: