mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-11-24 04:31:37 +03:00
59 lines
2.0 KiB
YAML
59 lines
2.0 KiB
YAML
version: 2.1
|
|
|
|
jobs:
|
|
test-ubuntu-arm64:
|
|
machine:
|
|
image: ubuntu-2004:202111-02
|
|
resource_class: arm.medium
|
|
steps:
|
|
- checkout
|
|
- run:
|
|
name: Build
|
|
command: |
|
|
uname -a
|
|
lsb_release -a
|
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
|
source $HOME/.cargo/env
|
|
rustc --version
|
|
cargo --version
|
|
cargo build --verbose --color always
|
|
- run:
|
|
name: Tests units and integration tests
|
|
command: |
|
|
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
|
|
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 $(find ./tests -maxdepth 1 -type f -name '*.curl' ! -name '*windows*')
|
|
python3 ./test_html_output.py tests/*.html
|
|
xmllint --noout tests/*.html
|
|
- store_artifacts:
|
|
path: integration/mitmdump.log
|
|
|
|
- store_artifacts:
|
|
path: integration/server.log
|
|
|
|
- store_artifacts:
|
|
path: integration/server-ssl.log
|
|
|
|
workflows:
|
|
tests-arm64:
|
|
jobs:
|
|
- test-ubuntu-arm64
|