]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
travis: add rust 1.7.0 build
authorJason Ish <ish@unx.ca>
Thu, 8 Jun 2017 19:32:40 +0000 (13:32 -0600)
committerVictor Julien <victor@inliniac.net>
Mon, 12 Jun 2017 17:27:36 +0000 (19:27 +0200)
One build with Rust 1.7.0, our oldest that we'll support as its
whats bundled with Ubuntu 16.04. Create another build that will use
the latest stable.

.travis.yml

index 66c39ff1d8c0bcef6db718967930348ecfee1822..7558f01e9ba1a5fe53fdeeb6f0d456139b840d77 100644 (file)
@@ -47,10 +47,8 @@ matrix:
     - os: linux
       compiler: gcc
       env:
-        - NAME="linux,gcc,cocci,rust"
+        - NAME="linux,gcc,cocci"
         - *default-cflags
-        - ENABLE_RUST="yes"
-        - ARGS="--enable-rust"
       addons:
         apt:
           sources:
@@ -58,6 +56,23 @@ matrix:
           packages:
             - *packages
             - coccinelle
+    # Linux, gcc, Rust (latest stable).
+    - os: linux
+      compiler: gcc
+      env:
+        - NAME="linux,gcc,rust"
+        - *default-cflags
+        - ENABLE_RUST="yes"
+        - ARGS="--enable-rust"
+    # Linux, gcc, Rust (1.7.0 - oldest supported).
+    - os: linux
+      compiler: gcc
+      env:
+        - NAME="linux,gcc,rust-1.7.0"
+        - *default-cflags
+        - ENABLE_RUST="yes"
+        - RUST_VERSION="1.7.0"
+        - ARGS="--enable-rust"
     # Linux, gcc, -DNDEBUG.
     - os: linux
       compiler: gcc
@@ -139,11 +154,15 @@ script:
     fi
 
 before_install:
+  - export PATH=$HOME/.cargo/bin:$PATH
   - |
     if [[ "$ENABLE_RUST" == "yes" ]]; then
         curl https://sh.rustup.rs -sSf | sh -s -- -y
+        if [[ "$RUST_VERSION" != "" ]]; then
+            rustup override set $RUST_VERSION
+        fi
+        rustc --version
     fi
-  - export PATH=$HOME/.cargo/bin:$PATH
   - |
     if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
         brew update