]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
travis: enable a rust build
authorJason Ish <ish@unx.ca>
Thu, 16 Mar 2017 21:38:14 +0000 (15:38 -0600)
committerJason Ish <ish@unx.ca>
Mon, 5 Jun 2017 20:57:20 +0000 (14:57 -0600)
.travis.yml

index c05265f1f7d5c531108d048fda56658277dcd8ed..66c39ff1d8c0bcef6db718967930348ecfee1822 100644 (file)
@@ -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