Merge branch 'atomics' of https://github.com/bvanassche/fio
[fio.git] / .travis.yml
index 3bc833427c3a1e97c92b9533cb027dff8fef138a..b64f0a958bbc418212e351e8bec4531c8e4ea18b 100644 (file)
@@ -1,4 +1,45 @@
 language: c
+dist: bionic
+os:
+  - linux
 compiler:
   - clang
   - gcc
+arch:
+  - amd64
+  - arm64
+env:
+  matrix:
+    - BUILD_ARCH="x86"
+    - BUILD_ARCH="x86_64"
+  global:
+    - MAKEFLAGS="-j 2"
+matrix:
+  include:
+    # Default xcode image
+    - os: osx
+      compiler: clang # Workaround travis setting CC=["clang", "gcc"]
+      env: BUILD_ARCH="x86_64"
+      arch: amd64
+    # Latest xcode image (needs periodic updating)
+    - os: osx
+      compiler: clang
+      osx_image: xcode11.2
+      env: BUILD_ARCH="x86_64"
+      arch: amd64
+  exclude:
+    - os: osx
+      compiler: gcc
+    - os: linux
+      compiler: clang
+      arch: amd64
+      env: BUILD_ARCH="x86" # Only do the gcc x86 build to reduce clutter
+    - os: linux
+      env: BUILD_ARCH="x86"
+      arch: arm64
+
+before_install:
+  - ci/travis-install.sh
+
+script:
+  - ci/travis-build.sh