fix arm64 tests on circleci
@@ -8,7 +8,7 @@ jobs:
steps:
- checkout
- run:
- name: build
+ name: Build
command: |
uname -a
lsb_release -a
@@ -18,29 +18,31 @@ jobs:
cargo --version
cargo build --verbose --color always
- run:
- name: Run Tests units
+ name: Tests units and integration tests
command: |
- sudo apt update
- sudo apt install -y libxml2-utils
- python3 -m pip install --upgrade pip
- pip3 install Flask mitmproxy
+ sudo apt update -qq
+ sudo apt install -y -qq libxml2-utils
+ python3 -m pip install --upgrade pip --quiet
+ pip3 install Flask mitmproxy --quiet
mitmdump --version
+ export PATH="$PWD/target/debug:$PATH"
cd integration
python3 server.py >server.log 2>&1 &
python3 ssl/server.py >server-ssl.log 2>&1 &
mitmdump -p 8888 --modify-header "/From-Proxy/Hello" >mitmdump.log 2>&1 &
+ echo "================= Tests units ================="
cargo test --features strict --verbose --color always
- - run:
- name: Run Integration Tests
- command: |
- export PATH="$PWD/target/debug:$PATH"
- cd integration
- pip3 install lxml bs4
+ sudo apt update -qq
+ sudo apt install -y -qq libxml2-utils
+ python3 -m pip install --upgrade pip
+ pip3 install Flask mitmproxy --quiet
+ mitmdump --version
+ pip3 install lxml bs4 --quiet
+ echo "================= Integration tests ================="
python3 ./integration.py
./test_curl_commands.sh tests/*.curl
python3 ./test_html_output.py tests/*.html
xmllint --noout tests/*.html
-
- store_artifacts:
path: integration/mitmdump.log
