mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-11-26 11:43:08 +03:00
52 lines
1.5 KiB
YAML
52 lines
1.5 KiB
YAML
language: rust
|
|
sudo: true
|
|
rust:
|
|
- 1.46.0
|
|
|
|
jobs:
|
|
include:
|
|
- os: linux
|
|
dist: bionic
|
|
- os: osx
|
|
|
|
#cache: cargo
|
|
|
|
before_install:
|
|
- 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:
|
|
- rustup component add clippy
|
|
- cargo clippy --version
|
|
- cargo install cargo-deb
|
|
- which python3
|
|
- 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:
|
|
- ./build.sh
|
|
- cargo build --release --verbose
|
|
- strip $PWD/target/release/hurl
|
|
- strip $PWD/target/release/hurlfmt
|
|
- export PATH="$PWD/target/release:$PATH"
|
|
- integration/integration.sh
|
|
- ci/create_tarballs target/upload "$TRAVIS_OS_NAME"
|
|
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then cargo deb && cp target/debian/*.deb target/upload; fi
|
|
|
|
|
|
deploy:
|
|
provider: script
|
|
script: ci/deploy.sh
|
|
skip_cleanup: true
|
|
on:
|
|
all_branch: true
|
|
tags: true
|
|
|