]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
added mingw cross compilation tests
authorYann Collet <yann.collet.73@gmail.com>
Wed, 27 Nov 2019 20:44:02 +0000 (12:44 -0800)
committerYann Collet <yann.collet.73@gmail.com>
Wed, 27 Nov 2019 20:44:02 +0000 (12:44 -0800)
based on a script in RocksDB project.

also : pushed qemu aarch64 tests to master/cron,
since there are already hardware aarch64 tests on dev.

.travis.yml

index fd486af6926cab5349f6deab562bd5f6ab9e00de..c7d027f997a5736e471c43b3e5f02dd147e2c212 100644 (file)
@@ -85,7 +85,7 @@ matrix:
         - make cmakebuild
 
     - name: static analyzer scanbuild    # ~26mn
-      dist: trusty  # note : it's important to pin down a version of static analyzer, since newer versions find different false positives 
+      dist: trusty  # note : it's important to pin down a version of static analyzer, since newer versions find different false positives
       script:
         - make staticAnalyze
 
@@ -120,6 +120,11 @@ matrix:
         - make clean
         - make travis-install    # just ensures `make install` works
 
+    - name: mingw cross-compilation
+      script :
+        - sudo update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix;
+        - CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ make
+
     - name: Valgrind + Fuzz Test Stack Mode    # ~ 7mn
       script:
         - make valgrindinstall
@@ -132,12 +137,6 @@ matrix:
         - make arminstall
         - make armfuzz
 
-    - name: Qemu aarch64 + Fuzz Test (on Xenial)    # ~14mn
-      dist: xenial
-      script:
-        - make arminstall
-        - make aarch64fuzz
-
     - name: Qemu PPC + Fuzz Test    # ~13mn
       dist: trusty   # it seems ppc cross-compilation fails on "current"
       script:
@@ -175,6 +174,14 @@ matrix:
         - make ppcinstall
         - make ppc64fuzz
 
+    # note : we already have aarch64 tests on hardware
+    - name: Qemu aarch64 + Fuzz Test (on Xenial)    # ~14mn
+      if: branch = master
+      dist: xenial
+      script:
+        - make arminstall
+        - make aarch64fuzz
+
     - name: zlib wrapper test    # ~7.5mn
       if: branch = master
       script: