]> git.lizzy.rs Git - rust.git/blobdiff - .travis.yml
Extract constant from scalar to_radians as well
[rust.git] / .travis.yml
index fff11d97f6f7278e6d213e39aebbf9e409743f79..6b284c87ecbef402e141c221aefae4a6e6b55b50 100644 (file)
@@ -1,3 +1,7 @@
+branches:
+  only:
+    - master
+
 language: rust
 rust:
   - nightly
@@ -5,154 +9,74 @@ rust:
 matrix:
   fast_finish: true
   include:
-    # Linux (x86_64)
-    - name: "x86_64-unknown-linux-gnu"
-      os: linux
-      arch: amd64
-      env:
-        - TARGET=x86_64-unknown-linux-gnu
-    - name: "x86_64-unknown-linux-gnu+sse"
-      os: linux
-      arch: amd64
-      env:
-        - TARGET=x86_64-unknown-linux-gnu
-        - TARGET_FEATURE=sse
-    - name: "x86_64-unknown-linux-gnu+sse2"
-      os: linux
-      arch: amd64
-      env:
-        - TARGET=x86_64-unknown-linux-gnu
-        - TARGET_FEATURE=sse2
-    - name: "x86_64-unknown-linux-gnu+sse3"
-      os: linux
-      arch: amd64
-      env:
-        - TARGET=x86_64-unknown-linux-gnu
-        - TARGET_FEATURE=sse3
-    - name: "x86_64-unknown-linux-gnu+sse4.1"
-      os: linux
-      arch: amd64
-      env:
-        - TARGET=x86_64-unknown-linux-gnu
-        - TARGET_FEATURE=sse4.1
-    - name: "x86_64-unknown-linux-gnu+sse4.2"
-      os: linux
-      arch: amd64
-      env:
-        - TARGET=x86_64-unknown-linux-gnu
-        - TARGET_FEATURE=sse4.2
-    - name: "x86_64-unknown-linux-gnu+avx"
-      os: linux
-      arch: amd64
-      env:
-        - TARGET=x86_64-unknown-linux-gnu
-        - TARGET_FEATURE=avx
-    - name: "x86_64-unknown-linux-gnu+avx2"
-      os: linux
-      arch: amd64
-      env:
-        - TARGET=x86_64-unknown-linux-gnu
-        - TARGET_FEATURE=avx2
-    - name: "x86_64-unknown-linux-gnu+avx512vl"
-      os: linux
-      arch: amd64
-      env:
-        - TARGET=x86_64-unknown-linux-gnu
-        - TARGET_FEATURE=avx512vl
-
     # Linux (aarch64)
-    - name: "aarch64-unknown-linux-gnu"
+    - name: "aarch64-unknown-linux-gnu (neon)"
       os: linux
       arch: arm64
-      env:
-        - TARGET=aarch64-unknown-linux-gnu
-    - name: "aarch64-unknown-linux-gnu+neon"
+
+    - name: "aarch64-unknown-linux-gnu (neon, sve)"
       os: linux
       arch: arm64
-      env:
-        - TARGET=aarch64-unknown-linux-gnu
-        - TARGET_FEATURE=neon
-    - name: "aarch64-unknown-linux-gnu+sve"
+      env: RUSTFLAGS=-Ctarget-feature=+sve
+
+    - name: "aarch64-unknown-linux-gnu (native, see log for cfg)"
       os: linux
       arch: arm64
-      env:
-        - TARGET=aarch64-unknown-linux-gnu
-        - TARGET_FEATURE=sve
+      env: RUSTFLAGS=-Ctarget-cpu=native
 
-    # Linux (powerpc64)
-    - name: "powerpc64le-unknown-linux-gnu"
+    # Linux (powerpc64le)
+    - name: "powerpc64le-unknown-linux-gnu (altivec, vsx, power8-*)"
       os: linux
       arch: ppc64le
-      env:
-        - TARGET=powerpc64le-unknown-linux-gnu
-    - name: "powerpc64le-unknown-linux-gnu+vsx"
+
+    - name: "powerpc64le-unknown-linux-gnu (native, see log for cfg)"
       os: linux
       arch: ppc64le
-      env:
-        - TARGET=powerpc64le-unknown-linux-gnu
-        - TARGET_FEATURE=vsx
+      env: RUSTFLAGS=-Ctarget-cpu=native
 
-    # Windows (x86_64)
-    - name: "x86_64-pc-windows-msvc"
-      os: windows
-      arch: amd64
-      env: TARGET=x86_64-pc-windows-msvc
-    
-    # Windows (i686)
-    - name: "i686-pc-windows-msvc"
-      os: windows
-      env: TARGET=i686-pc-windows-msvc
-    - name: "i686-pc-windows-msvc+sse"
-      os: windows
-      arch: amd64
-      env:
-        - TARGET=i686-pc-windows-msvc
-        - TARGET_FEATURE=sse
-    - name: "i686-pc-windows-msvc+sse2"
-      os: windows
-      arch: amd64
-      env:
-        - TARGET=i686-pc-windows-msvc
-        - TARGET_FEATURE=sse2
-    - name: "i686-pc-windows-msvc+sse3"
-      os: windows
-      arch: amd64
-      env:
-        - TARGET=i686-pc-windows-msvc
-        - TARGET_FEATURE=sse3
-    - name: "i686-pc-windows-msvc+sse4.1"
-      os: windows
-      arch: amd64
-      env:
-        - TARGET=i686-pc-windows-msvc
-        - TARGET_FEATURE=sse4.1
-    - name: "i686-pc-windows-msvc+sse4.2"
-      os: windows
-      arch: amd64
-      env:
-        - TARGET=i686-pc-windows-msvc
-        - TARGET_FEATURE=sse4.2
-    - name: "i686-pc-windows-msvc+avx"
-      os: windows
-      arch: amd64
-      env:
-        - TARGET=i686-pc-windows-msvc
-        - TARGET_FEATURE=avx
-    - name: "i686-pc-windows-msvc+avx2"
-      os: windows
+    # Linux (x86_64) (for AVX512, which sadly seems to only *usually* be present
+    # on the github actions linux runner...)
+    - name: "x86_64-unknown-linux-gnu+avx512vl"
+      os: linux
       arch: amd64
-      env:
-        - TARGET=i686-pc-windows-msvc
-        - TARGET_FEATURE=avx2
+      env: RUSTFLAGS=-Ctarget-feature=+avx512vl
 
-    # OSX (x86_64)
-    - name: "x86_64-apple-darwin"
-      os: osx
+    # WebAssembly (wasm-bindgen)
+    - name: "wasm32-unknown-unknown (firefox)"
+      os: linux
       arch: amd64
-      env:
-        - TARGET=x86_64-apple-darwin
+      addons:
+        firefox: latest-nightly
+      install:
+        - curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
+      script:
+        - wasm-pack test --firefox --headless crates/core_simd
+        - wasm-pack test --firefox --headless crates/core_simd --release
+
+    # FIXME: See https://github.com/rust-lang/stdsimd/issues/92
+    # - name: "wasm32-unknown-unknown+simd128 (firefox)"
+    #   os: linux
+    #   arch: amd64
+    #   addons:
+    #     firefox: latest-nightly
+    #   install:
+    #     - curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
+    #   script:
+    #     - export RUSTFLAGS="-C target-feature=+simd128"
+    #     - wasm-pack test --firefox --headless crates/core_simd
+    #     - wasm-pack test --firefox --headless crates/core_simd --release
 
 script:
-  - rustup target add $TARGET
-  - if [ -n "$TARGET_FEATURE" ]; then RUSTFLAGS="-C target-feature=+$TARGET_FEATURE"; fi
-  - cargo test -v --target $TARGET
+  - echo "## Requested target configuration (RUSTFLAGS=$RUSTFLAGS)"
+  - rustc --print=cfg $RUSTFLAGS
+
+  - echo "## Supported target configuration"
+  - rustc --print=cfg -Ctarget-cpu=native
+
+  - echo "\n---\n"
+
+  - echo "## Running tests (debug)"
+  - cargo test -v
+
+  - echo "## Running tests (release)"
+  - cargo test -v --release