From: Jason Ish Date: Thu, 16 Mar 2017 21:38:14 +0000 (-0600) Subject: travis: enable a rust build X-Git-Tag: suricata-4.0.0-beta1~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6d635869177c9753d42e5cdeb78a2375c27a197;p=thirdparty%2Fsuricata.git travis: enable a rust build --- diff --git a/.travis.yml b/.travis.yml index c05265f1f7..66c39ff1d8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -47,8 +47,10 @@ matrix: - os: linux compiler: gcc env: - - NAME="linux,gcc,cocci" + - NAME="linux,gcc,cocci,rust" - *default-cflags + - ENABLE_RUST="yes" + - ARGS="--enable-rust" addons: apt: sources: @@ -137,6 +139,11 @@ script: fi before_install: + - | + if [[ "$ENABLE_RUST" == "yes" ]]; then + curl https://sh.rustup.rs -sSf | sh -s -- -y + fi + - export PATH=$HOME/.cargo/bin:$PATH - | if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update