mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2025-01-08 20:54:28 +03:00
Merge pull request #9 from Orange-OpenSource/feature/add-mitmproxy-to-travis
Add mitmproxy to travis
This commit is contained in:
commit
e1db26aa8c
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user