Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ci/fix integration for arm64 #340

Merged
merged 3 commits into from
Nov 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 16 additions & 14 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
steps:
- checkout
- run:
name: build
name: Build
command: |
uname -a
lsb_release -a
Expand All @@ -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

Expand All @@ -51,6 +53,6 @@ jobs:
path: integration/server-ssl.log

workflows:
arm64:
tests-arm64:
jobs:
- test-ubuntu-arm64
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<br/>

[![deploy status](https://github.com/Orange-OpenSource/hurl/workflows/CI/badge.svg)](https://github.com/Orange-OpenSource/hurl/actions)
[![CircleCI](https://circleci.com/gh/lepapareil/hurl/tree/master.svg?style=svg)](https://circleci.com/gh/lepapareil/hurl/tree/master)
[![Crates.io](https://img.shields.io/crates/v/hurl.svg)](https://crates.io/crates/hurl)
[![documentation](https://img.shields.io/badge/-documentation-informational)](https://hurl.dev)

Expand Down