2019-10-21 09:08:57 +00:00
|
|
|
# In the YML below each job gets an environment that includes
|
|
|
|
# BUILD_OS and BUILD_MODE. The variables are used in the driver
|
|
|
|
# scripts and is used to select a test. For example, BUILD_OS=linux
|
|
|
|
# and BUILD_MODE=all means run 'make all' on Linux. Travis supplies
|
|
|
|
# Linux based on 'os: linux' key so BUILD_OS is effectively ignored.
|
|
|
|
# The Android and iOS tests specify a BUILD_ARCH. BUILD_ARCH is passed
|
|
|
|
# to the underlying setenv-*.sh scripts. For example, testing on iOS,
|
|
|
|
# BUILD_ARCH=arm64 means 'setenv-ios.sh arm64' is called before
|
|
|
|
# 'make GNUmakefile-cross' is called.
|
|
|
|
|
|
|
|
# DO NOT create top level (global) keys like env, arch, os, compiler.
|
|
|
|
# The top level/global keys invoke [unwanted] matrix expansion. Also
|
|
|
|
# see https://stackoverflow.com/q/58473000/608639 and
|
|
|
|
# https://docs.travis-ci.com/user/reference/overview/ and
|
|
|
|
# https://docs.travis-ci.com/user/multi-cpu-architectures and
|
|
|
|
# https://github.com/travis-ci/travis-yml/blob/master/schema.json.
|
2017-05-26 14:08:44 +00:00
|
|
|
|
2019-10-21 01:46:05 +00:00
|
|
|
language: cpp
|
2019-10-22 20:59:39 +00:00
|
|
|
dist: bionic
|
2018-01-21 14:05:34 +00:00
|
|
|
sudo: required
|
2017-05-26 14:08:44 +00:00
|
|
|
|
|
|
|
git:
|
2018-12-09 08:31:50 +00:00
|
|
|
depth: 5
|
2017-05-26 14:08:44 +00:00
|
|
|
|
2019-10-21 01:46:05 +00:00
|
|
|
# Use jobs rather than matrix since we are precisely
|
|
|
|
# specifiying our test cases. Do not move any of the
|
|
|
|
# keys (env, os, arch, compiler, etc) into global.
|
|
|
|
# Putting them in global invokes the matrix expansion.
|
|
|
|
jobs:
|
2018-01-21 14:05:34 +00:00
|
|
|
include:
|
|
|
|
- os: linux
|
2019-10-21 01:46:05 +00:00
|
|
|
name: Linux with GCC (all)
|
|
|
|
arch: amd64
|
|
|
|
compiler: gcc
|
|
|
|
env:
|
|
|
|
- BUILD_OS=linux
|
|
|
|
- BUILD_MODE=all
|
|
|
|
- BUILD_JOBS=2
|
|
|
|
- os: linux
|
|
|
|
name: Linux with GCC (native)
|
|
|
|
arch: amd64
|
|
|
|
compiler: gcc
|
|
|
|
env:
|
|
|
|
- BUILD_OS=linux
|
|
|
|
- BUILD_MODE=native
|
|
|
|
- BUILD_JOBS=2
|
|
|
|
- os: linux
|
|
|
|
name: Linux with GCC (no-asm)
|
|
|
|
arch: amd64
|
|
|
|
compiler: gcc
|
|
|
|
env:
|
|
|
|
- BUILD_OS=linux
|
|
|
|
- BUILD_MODE=no-asm
|
|
|
|
- BUILD_JOBS=2
|
|
|
|
- os: linux
|
|
|
|
name: Linux with GCC (debug)
|
|
|
|
arch: amd64
|
|
|
|
compiler: gcc
|
|
|
|
env:
|
|
|
|
- BUILD_OS=linux
|
|
|
|
- BUILD_MODE=debug
|
|
|
|
- BUILD_JOBS=2
|
|
|
|
- os: linux
|
|
|
|
name: Linux with GCC (asan)
|
|
|
|
arch: amd64
|
|
|
|
compiler: gcc
|
|
|
|
env:
|
|
|
|
- BUILD_OS=linux
|
|
|
|
- BUILD_MODE=asan
|
|
|
|
- BUILD_JOBS=2
|
|
|
|
- os: linux
|
|
|
|
name: Linux with GCC (ubsan)
|
|
|
|
arch: amd64
|
|
|
|
compiler: gcc
|
|
|
|
env:
|
|
|
|
- BUILD_OS=linux
|
|
|
|
- BUILD_MODE=ubsan
|
|
|
|
- BUILD_JOBS=2
|
|
|
|
- os: linux
|
|
|
|
name: Linux with GCC (pem)
|
|
|
|
arch: amd64
|
|
|
|
compiler: gcc
|
|
|
|
env:
|
|
|
|
- BUILD_OS=linux
|
|
|
|
- BUILD_MODE=pem
|
|
|
|
- BUILD_JOBS=2
|
|
|
|
- os: linux
|
|
|
|
name: Linux with GCC (autotools)
|
|
|
|
arch: amd64
|
|
|
|
compiler: gcc
|
2018-01-21 14:05:34 +00:00
|
|
|
env:
|
2018-08-02 01:33:24 +00:00
|
|
|
- BUILD_OS=linux
|
Add ARMv8.4 cpu feature detection support (GH #685) (#687)
This PR adds ARMv8.4 cpu feature detection support. Previously we only needed ARMv8.1 and things were much easier. For example, ARMv8.1 `__ARM_FEATURE_CRYPTO` meant PMULL, AES, SHA-1 and SHA-256 were available. ARMv8.4 `__ARM_FEATURE_CRYPTO` means PMULL, AES, SHA-1, SHA-256, SHA-512, SHA-3, SM3 and SM4 are available.
We still use the same pattern as before. We make something available based on compiler version and/or preprocessor macros. But this time around we had to tighten things up a bit to ensure ARMv8.4 did not cross-pollinate down into ARMv8.1.
ARMv8.4 is largely untested at the moment. There is no hardware in the field and CI lacks QEMU with the relevant patches/support. We will probably have to revisit some of this stuff in the future.
Since this update applies to ARM gadgets we took the time to expand Android and iOS testing on Travis. Travis now tests more platforms, and includes Autotools and CMake builds, too.
2018-07-15 12:35:14 +00:00
|
|
|
- BUILD_MODE=autotools
|
2019-10-21 01:46:05 +00:00
|
|
|
- BUILD_JOBS=2
|
Add ARMv8.4 cpu feature detection support (GH #685) (#687)
This PR adds ARMv8.4 cpu feature detection support. Previously we only needed ARMv8.1 and things were much easier. For example, ARMv8.1 `__ARM_FEATURE_CRYPTO` meant PMULL, AES, SHA-1 and SHA-256 were available. ARMv8.4 `__ARM_FEATURE_CRYPTO` means PMULL, AES, SHA-1, SHA-256, SHA-512, SHA-3, SM3 and SM4 are available.
We still use the same pattern as before. We make something available based on compiler version and/or preprocessor macros. But this time around we had to tighten things up a bit to ensure ARMv8.4 did not cross-pollinate down into ARMv8.1.
ARMv8.4 is largely untested at the moment. There is no hardware in the field and CI lacks QEMU with the relevant patches/support. We will probably have to revisit some of this stuff in the future.
Since this update applies to ARM gadgets we took the time to expand Android and iOS testing on Travis. Travis now tests more platforms, and includes Autotools and CMake builds, too.
2018-07-15 12:35:14 +00:00
|
|
|
- os: linux
|
2019-10-21 01:46:05 +00:00
|
|
|
name: Linux with GCC (cmake)
|
|
|
|
arch: amd64
|
|
|
|
compiler: gcc
|
Add ARMv8.4 cpu feature detection support (GH #685) (#687)
This PR adds ARMv8.4 cpu feature detection support. Previously we only needed ARMv8.1 and things were much easier. For example, ARMv8.1 `__ARM_FEATURE_CRYPTO` meant PMULL, AES, SHA-1 and SHA-256 were available. ARMv8.4 `__ARM_FEATURE_CRYPTO` means PMULL, AES, SHA-1, SHA-256, SHA-512, SHA-3, SM3 and SM4 are available.
We still use the same pattern as before. We make something available based on compiler version and/or preprocessor macros. But this time around we had to tighten things up a bit to ensure ARMv8.4 did not cross-pollinate down into ARMv8.1.
ARMv8.4 is largely untested at the moment. There is no hardware in the field and CI lacks QEMU with the relevant patches/support. We will probably have to revisit some of this stuff in the future.
Since this update applies to ARM gadgets we took the time to expand Android and iOS testing on Travis. Travis now tests more platforms, and includes Autotools and CMake builds, too.
2018-07-15 12:35:14 +00:00
|
|
|
env:
|
2018-08-02 01:33:24 +00:00
|
|
|
- BUILD_OS=linux
|
Add ARMv8.4 cpu feature detection support (GH #685) (#687)
This PR adds ARMv8.4 cpu feature detection support. Previously we only needed ARMv8.1 and things were much easier. For example, ARMv8.1 `__ARM_FEATURE_CRYPTO` meant PMULL, AES, SHA-1 and SHA-256 were available. ARMv8.4 `__ARM_FEATURE_CRYPTO` means PMULL, AES, SHA-1, SHA-256, SHA-512, SHA-3, SM3 and SM4 are available.
We still use the same pattern as before. We make something available based on compiler version and/or preprocessor macros. But this time around we had to tighten things up a bit to ensure ARMv8.4 did not cross-pollinate down into ARMv8.1.
ARMv8.4 is largely untested at the moment. There is no hardware in the field and CI lacks QEMU with the relevant patches/support. We will probably have to revisit some of this stuff in the future.
Since this update applies to ARM gadgets we took the time to expand Android and iOS testing on Travis. Travis now tests more platforms, and includes Autotools and CMake builds, too.
2018-07-15 12:35:14 +00:00
|
|
|
- BUILD_MODE=cmake
|
2019-10-21 01:46:05 +00:00
|
|
|
- BUILD_JOBS=2
|
|
|
|
- os: linux
|
|
|
|
name: Linux with Clang (all)
|
|
|
|
arch: amd64
|
|
|
|
compiler: clang
|
|
|
|
env:
|
|
|
|
- BUILD_OS=linux
|
|
|
|
- BUILD_MODE=all
|
|
|
|
- BUILD_JOBS=2
|
|
|
|
- os: linux
|
|
|
|
name: Linux with Clang (native)
|
|
|
|
arch: amd64
|
|
|
|
compiler: clang
|
|
|
|
env:
|
|
|
|
- BUILD_OS=linux
|
|
|
|
- BUILD_MODE=native
|
|
|
|
- BUILD_JOBS=2
|
|
|
|
- os: linux
|
|
|
|
name: Linux with Clang (no-asm)
|
|
|
|
arch: amd64
|
|
|
|
compiler: clang
|
|
|
|
env:
|
|
|
|
- BUILD_OS=linux
|
|
|
|
- BUILD_MODE=no-asm
|
|
|
|
- BUILD_JOBS=2
|
|
|
|
- os: linux
|
|
|
|
name: Linux with Clang (debug)
|
|
|
|
arch: amd64
|
|
|
|
compiler: clang
|
|
|
|
env:
|
|
|
|
- BUILD_OS=linux
|
|
|
|
- BUILD_MODE=debug
|
|
|
|
- BUILD_JOBS=2
|
|
|
|
- os: linux
|
|
|
|
name: Linux with Clang (asan)
|
|
|
|
arch: amd64
|
|
|
|
compiler: clang
|
|
|
|
env:
|
|
|
|
- BUILD_OS=linux
|
|
|
|
- BUILD_MODE=asan
|
|
|
|
- BUILD_JOBS=2
|
|
|
|
- os: linux
|
|
|
|
name: Linux with Clang (ubsan)
|
|
|
|
arch: amd64
|
|
|
|
compiler: clang
|
|
|
|
env:
|
|
|
|
- BUILD_OS=linux
|
|
|
|
- BUILD_MODE=ubsan
|
|
|
|
- BUILD_JOBS=2
|
2019-10-15 03:05:05 +00:00
|
|
|
- os: linux
|
2019-10-21 01:46:05 +00:00
|
|
|
name: Linux with Clang (pem)
|
|
|
|
arch: amd64
|
|
|
|
compiler: clang
|
2019-10-15 03:05:05 +00:00
|
|
|
env:
|
|
|
|
- BUILD_OS=linux
|
|
|
|
- BUILD_MODE=pem
|
2019-10-21 01:46:05 +00:00
|
|
|
- BUILD_JOBS=2
|
|
|
|
- os: linux
|
|
|
|
name: Linux with Clang (autotools)
|
|
|
|
arch: amd64
|
|
|
|
compiler: clang
|
|
|
|
env:
|
|
|
|
- BUILD_OS=linux
|
|
|
|
- BUILD_MODE=autotools
|
|
|
|
- BUILD_JOBS=2
|
|
|
|
- os: linux
|
|
|
|
name: Linux with Clang (cmake)
|
|
|
|
arch: amd64
|
|
|
|
compiler: clang
|
|
|
|
env:
|
|
|
|
- BUILD_OS=linux
|
|
|
|
- BUILD_MODE=cmake
|
|
|
|
- BUILD_JOBS=2
|
Add ARMv8.4 cpu feature detection support (GH #685) (#687)
This PR adds ARMv8.4 cpu feature detection support. Previously we only needed ARMv8.1 and things were much easier. For example, ARMv8.1 `__ARM_FEATURE_CRYPTO` meant PMULL, AES, SHA-1 and SHA-256 were available. ARMv8.4 `__ARM_FEATURE_CRYPTO` means PMULL, AES, SHA-1, SHA-256, SHA-512, SHA-3, SM3 and SM4 are available.
We still use the same pattern as before. We make something available based on compiler version and/or preprocessor macros. But this time around we had to tighten things up a bit to ensure ARMv8.4 did not cross-pollinate down into ARMv8.1.
ARMv8.4 is largely untested at the moment. There is no hardware in the field and CI lacks QEMU with the relevant patches/support. We will probably have to revisit some of this stuff in the future.
Since this update applies to ARM gadgets we took the time to expand Android and iOS testing on Travis. Travis now tests more platforms, and includes Autotools and CMake builds, too.
2018-07-15 12:35:14 +00:00
|
|
|
- os: osx
|
2019-10-21 01:46:05 +00:00
|
|
|
osx_image: xcode10.1
|
|
|
|
name: OS X with Clang (all)
|
|
|
|
arch: amd64
|
|
|
|
compiler: clang
|
Add ARMv8.4 cpu feature detection support (GH #685) (#687)
This PR adds ARMv8.4 cpu feature detection support. Previously we only needed ARMv8.1 and things were much easier. For example, ARMv8.1 `__ARM_FEATURE_CRYPTO` meant PMULL, AES, SHA-1 and SHA-256 were available. ARMv8.4 `__ARM_FEATURE_CRYPTO` means PMULL, AES, SHA-1, SHA-256, SHA-512, SHA-3, SM3 and SM4 are available.
We still use the same pattern as before. We make something available based on compiler version and/or preprocessor macros. But this time around we had to tighten things up a bit to ensure ARMv8.4 did not cross-pollinate down into ARMv8.1.
ARMv8.4 is largely untested at the moment. There is no hardware in the field and CI lacks QEMU with the relevant patches/support. We will probably have to revisit some of this stuff in the future.
Since this update applies to ARM gadgets we took the time to expand Android and iOS testing on Travis. Travis now tests more platforms, and includes Autotools and CMake builds, too.
2018-07-15 12:35:14 +00:00
|
|
|
env:
|
2018-08-02 01:33:24 +00:00
|
|
|
- BUILD_OS=osx
|
2019-10-21 01:46:05 +00:00
|
|
|
- BUILD_MODE=all
|
|
|
|
- BUILD_JOBS=2
|
Add ARMv8.4 cpu feature detection support (GH #685) (#687)
This PR adds ARMv8.4 cpu feature detection support. Previously we only needed ARMv8.1 and things were much easier. For example, ARMv8.1 `__ARM_FEATURE_CRYPTO` meant PMULL, AES, SHA-1 and SHA-256 were available. ARMv8.4 `__ARM_FEATURE_CRYPTO` means PMULL, AES, SHA-1, SHA-256, SHA-512, SHA-3, SM3 and SM4 are available.
We still use the same pattern as before. We make something available based on compiler version and/or preprocessor macros. But this time around we had to tighten things up a bit to ensure ARMv8.4 did not cross-pollinate down into ARMv8.1.
ARMv8.4 is largely untested at the moment. There is no hardware in the field and CI lacks QEMU with the relevant patches/support. We will probably have to revisit some of this stuff in the future.
Since this update applies to ARM gadgets we took the time to expand Android and iOS testing on Travis. Travis now tests more platforms, and includes Autotools and CMake builds, too.
2018-07-15 12:35:14 +00:00
|
|
|
- os: osx
|
2019-10-21 01:46:05 +00:00
|
|
|
osx_image: xcode10.1
|
|
|
|
name: OS X with Clang (native)
|
|
|
|
arch: amd64
|
|
|
|
compiler: clang
|
Add ARMv8.4 cpu feature detection support (GH #685) (#687)
This PR adds ARMv8.4 cpu feature detection support. Previously we only needed ARMv8.1 and things were much easier. For example, ARMv8.1 `__ARM_FEATURE_CRYPTO` meant PMULL, AES, SHA-1 and SHA-256 were available. ARMv8.4 `__ARM_FEATURE_CRYPTO` means PMULL, AES, SHA-1, SHA-256, SHA-512, SHA-3, SM3 and SM4 are available.
We still use the same pattern as before. We make something available based on compiler version and/or preprocessor macros. But this time around we had to tighten things up a bit to ensure ARMv8.4 did not cross-pollinate down into ARMv8.1.
ARMv8.4 is largely untested at the moment. There is no hardware in the field and CI lacks QEMU with the relevant patches/support. We will probably have to revisit some of this stuff in the future.
Since this update applies to ARM gadgets we took the time to expand Android and iOS testing on Travis. Travis now tests more platforms, and includes Autotools and CMake builds, too.
2018-07-15 12:35:14 +00:00
|
|
|
env:
|
2018-08-02 01:33:24 +00:00
|
|
|
- BUILD_OS=osx
|
2019-10-21 01:46:05 +00:00
|
|
|
- BUILD_MODE=native
|
|
|
|
- BUILD_JOBS=2
|
2019-10-15 03:05:05 +00:00
|
|
|
- os: osx
|
2019-10-21 01:46:05 +00:00
|
|
|
osx_image: xcode10.1
|
|
|
|
name: OS X with Clang (no-asm)
|
|
|
|
arch: amd64
|
|
|
|
compiler: clang
|
2019-10-15 03:01:27 +00:00
|
|
|
env:
|
2019-10-15 03:05:05 +00:00
|
|
|
- BUILD_OS=osx
|
2019-10-21 01:46:05 +00:00
|
|
|
- BUILD_MODE=no-asm
|
|
|
|
- BUILD_JOBS=2
|
|
|
|
- os: osx
|
|
|
|
osx_image: xcode10.1
|
|
|
|
name: OS X with Clang (debug)
|
|
|
|
arch: amd64
|
|
|
|
compiler: clang
|
|
|
|
env:
|
|
|
|
- BUILD_OS=osx
|
|
|
|
- BUILD_MODE=debug
|
|
|
|
- BUILD_JOBS=2
|
|
|
|
- os: osx
|
|
|
|
osx_image: xcode10.1
|
|
|
|
name: OS X with Clang (asan)
|
|
|
|
arch: amd64
|
|
|
|
compiler: clang
|
|
|
|
env:
|
|
|
|
- BUILD_OS=osx
|
|
|
|
- BUILD_MODE=asan
|
|
|
|
- BUILD_JOBS=2
|
|
|
|
- os: osx
|
|
|
|
osx_image: xcode10.1
|
|
|
|
name: OS X with Clang (ubsan)
|
|
|
|
arch: amd64
|
|
|
|
compiler: clang
|
|
|
|
env:
|
|
|
|
- BUILD_OS=osx
|
|
|
|
- BUILD_MODE=ubsan
|
|
|
|
- BUILD_JOBS=2
|
|
|
|
- os: osx
|
|
|
|
osx_image: xcode10.1
|
|
|
|
name: OS X with Clang (pem)
|
|
|
|
arch: amd64
|
|
|
|
compiler: clang
|
|
|
|
env:
|
|
|
|
- BUILD_OS=osx
|
|
|
|
- BUILD_MODE=pem
|
|
|
|
- BUILD_JOBS=2
|
|
|
|
- os: osx
|
|
|
|
osx_image: xcode10.1
|
|
|
|
name: OS X with Clang (autotools)
|
|
|
|
arch: amd64
|
|
|
|
compiler: clang
|
|
|
|
env:
|
|
|
|
- BUILD_OS=osx
|
|
|
|
- BUILD_MODE=autotools
|
|
|
|
- BUILD_JOBS=2
|
|
|
|
- os: osx
|
|
|
|
osx_image: xcode10.1
|
|
|
|
name: OS X with Clang (cmake)
|
|
|
|
arch: amd64
|
|
|
|
compiler: clang
|
|
|
|
env:
|
|
|
|
- BUILD_OS=osx
|
|
|
|
- BUILD_MODE=cmake
|
|
|
|
- BUILD_JOBS=2
|
|
|
|
- os: linux
|
|
|
|
name: Linux with GCC (all)
|
|
|
|
arch: arm64
|
|
|
|
compiler: gcc
|
2019-10-23 00:13:47 +00:00
|
|
|
dist: bionic
|
2019-10-21 01:46:05 +00:00
|
|
|
env:
|
|
|
|
- BUILD_OS=linux
|
|
|
|
- BUILD_MODE=all
|
|
|
|
- BUILD_JOBS=2
|
|
|
|
- os: linux
|
|
|
|
name: Linux with GCC (native)
|
|
|
|
arch: arm64
|
|
|
|
compiler: gcc
|
2019-10-23 00:13:47 +00:00
|
|
|
dist: bionic
|
2019-10-21 01:46:05 +00:00
|
|
|
env:
|
|
|
|
- BUILD_OS=linux
|
|
|
|
- BUILD_MODE=native
|
|
|
|
- BUILD_JOBS=2
|
|
|
|
- os: linux
|
|
|
|
name: Linux with GCC (no-asm)
|
|
|
|
arch: arm64
|
|
|
|
compiler: gcc
|
2019-10-23 00:13:47 +00:00
|
|
|
dist: bionic
|
2019-10-21 01:46:05 +00:00
|
|
|
env:
|
|
|
|
- BUILD_OS=linux
|
|
|
|
- BUILD_MODE=no-asm
|
|
|
|
- BUILD_JOBS=2
|
|
|
|
- os: linux
|
|
|
|
name: Linux with GCC (debug)
|
|
|
|
arch: arm64
|
|
|
|
compiler: gcc
|
2019-10-23 00:13:47 +00:00
|
|
|
dist: bionic
|
2019-10-21 01:46:05 +00:00
|
|
|
env:
|
|
|
|
- BUILD_OS=linux
|
|
|
|
- BUILD_MODE=debug
|
|
|
|
- BUILD_JOBS=2
|
|
|
|
- os: linux
|
|
|
|
name: Linux with GCC (asan)
|
|
|
|
arch: arm64
|
|
|
|
compiler: gcc
|
2019-10-23 00:13:47 +00:00
|
|
|
dist: bionic
|
2019-10-21 01:46:05 +00:00
|
|
|
env:
|
|
|
|
- BUILD_OS=linux
|
|
|
|
- BUILD_MODE=asan
|
|
|
|
- BUILD_JOBS=2
|
|
|
|
- os: linux
|
|
|
|
name: Linux with GCC (ubsan)
|
|
|
|
arch: arm64
|
|
|
|
compiler: gcc
|
2019-10-23 00:13:47 +00:00
|
|
|
dist: bionic
|
2019-10-21 01:46:05 +00:00
|
|
|
env:
|
|
|
|
- BUILD_OS=linux
|
|
|
|
- BUILD_MODE=ubsan
|
|
|
|
- BUILD_JOBS=2
|
|
|
|
- os: linux
|
|
|
|
name: Linux with GCC (pem)
|
|
|
|
arch: arm64
|
|
|
|
compiler: gcc
|
2019-10-23 00:13:47 +00:00
|
|
|
dist: bionic
|
2019-10-21 01:46:05 +00:00
|
|
|
env:
|
|
|
|
- BUILD_OS=linux
|
2019-10-15 03:01:27 +00:00
|
|
|
- BUILD_MODE=pem
|
2019-10-21 01:46:05 +00:00
|
|
|
- BUILD_JOBS=2
|
|
|
|
- os: linux
|
|
|
|
name: Linux with GCC (autotools)
|
|
|
|
arch: arm64
|
|
|
|
compiler: gcc
|
2019-10-23 00:13:47 +00:00
|
|
|
dist: bionic
|
2019-10-21 01:46:05 +00:00
|
|
|
env:
|
|
|
|
- BUILD_OS=linux
|
|
|
|
- BUILD_MODE=autotools
|
|
|
|
- BUILD_JOBS=2
|
|
|
|
- os: linux
|
|
|
|
name: Linux with GCC (cmake)
|
|
|
|
arch: arm64
|
|
|
|
compiler: gcc
|
2019-10-23 00:13:47 +00:00
|
|
|
dist: bionic
|
2019-10-21 01:46:05 +00:00
|
|
|
env:
|
|
|
|
- BUILD_OS=linux
|
|
|
|
- BUILD_MODE=cmake
|
|
|
|
- BUILD_JOBS=2
|
|
|
|
- os: linux
|
|
|
|
name: Linux with Clang (all)
|
|
|
|
arch: arm64
|
|
|
|
compiler: clang
|
2019-10-23 00:13:47 +00:00
|
|
|
dist: bionic
|
2019-10-21 01:46:05 +00:00
|
|
|
env:
|
|
|
|
- BUILD_OS=linux
|
|
|
|
- BUILD_MODE=all
|
|
|
|
- BUILD_JOBS=2
|
|
|
|
- os: linux
|
|
|
|
name: Linux with Clang (native)
|
|
|
|
arch: arm64
|
|
|
|
compiler: clang
|
2019-10-23 00:13:47 +00:00
|
|
|
dist: bionic
|
2019-10-21 01:46:05 +00:00
|
|
|
env:
|
|
|
|
- BUILD_OS=linux
|
|
|
|
- BUILD_MODE=native
|
|
|
|
- BUILD_JOBS=2
|
|
|
|
- os: linux
|
|
|
|
name: Linux with Clang (no-asm)
|
|
|
|
arch: arm64
|
|
|
|
compiler: clang
|
2019-10-23 00:13:47 +00:00
|
|
|
dist: bionic
|
2019-10-21 01:46:05 +00:00
|
|
|
env:
|
|
|
|
- BUILD_OS=linux
|
|
|
|
- BUILD_MODE=no-asm
|
|
|
|
- BUILD_JOBS=2
|
|
|
|
- os: linux
|
|
|
|
name: Linux with Clang (debug)
|
|
|
|
arch: arm64
|
|
|
|
compiler: clang
|
2019-10-23 00:13:47 +00:00
|
|
|
dist: bionic
|
2019-10-21 01:46:05 +00:00
|
|
|
env:
|
|
|
|
- BUILD_OS=linux
|
|
|
|
- BUILD_MODE=debug
|
|
|
|
- BUILD_JOBS=2
|
|
|
|
- os: linux
|
|
|
|
name: Linux with Clang (asan)
|
|
|
|
arch: arm64
|
|
|
|
compiler: clang
|
2019-10-23 00:13:47 +00:00
|
|
|
dist: bionic
|
2019-10-21 01:46:05 +00:00
|
|
|
env:
|
|
|
|
- BUILD_OS=linux
|
|
|
|
- BUILD_MODE=asan
|
|
|
|
- BUILD_JOBS=2
|
|
|
|
- os: linux
|
|
|
|
name: Linux with Clang (ubsan)
|
|
|
|
arch: arm64
|
|
|
|
compiler: clang
|
2019-10-23 00:13:47 +00:00
|
|
|
dist: bionic
|
2019-10-21 01:46:05 +00:00
|
|
|
env:
|
|
|
|
- BUILD_OS=linux
|
|
|
|
- BUILD_MODE=ubsan
|
|
|
|
- BUILD_JOBS=2
|
|
|
|
- os: linux
|
|
|
|
name: Linux with Clang (pem)
|
|
|
|
arch: arm64
|
|
|
|
compiler: clang
|
2019-10-23 00:13:47 +00:00
|
|
|
dist: bionic
|
2019-10-21 01:46:05 +00:00
|
|
|
env:
|
|
|
|
- BUILD_OS=linux
|
|
|
|
- BUILD_MODE=pem
|
|
|
|
- BUILD_JOBS=2
|
|
|
|
- os: linux
|
|
|
|
name: Linux with Clang (autotools)
|
|
|
|
arch: arm64
|
|
|
|
compiler: clang
|
2019-10-23 00:13:47 +00:00
|
|
|
dist: bionic
|
2019-10-21 01:46:05 +00:00
|
|
|
env:
|
|
|
|
- BUILD_OS=linux
|
|
|
|
- BUILD_MODE=autotools
|
|
|
|
- BUILD_JOBS=2
|
|
|
|
- os: linux
|
|
|
|
name: Linux with Clang (cmake)
|
|
|
|
arch: arm64
|
|
|
|
compiler: clang
|
2019-10-23 00:13:47 +00:00
|
|
|
dist: bionic
|
2019-10-21 01:46:05 +00:00
|
|
|
env:
|
|
|
|
- BUILD_OS=linux
|
|
|
|
- BUILD_MODE=cmake
|
|
|
|
- BUILD_JOBS=2
|
2019-10-22 20:59:39 +00:00
|
|
|
- os: linux
|
|
|
|
name: Linux with GCC (all)
|
|
|
|
arch: ppc64le
|
|
|
|
compiler: gcc
|
|
|
|
dist: bionic
|
|
|
|
env:
|
|
|
|
- BUILD_OS=linux
|
|
|
|
- BUILD_MODE=all
|
|
|
|
- BUILD_JOBS=2
|
|
|
|
- os: linux
|
|
|
|
name: Linux with Clang (all)
|
|
|
|
arch: ppc64le
|
|
|
|
compiler: clang
|
|
|
|
dist: bionic
|
|
|
|
env:
|
|
|
|
- BUILD_OS=linux
|
|
|
|
- BUILD_MODE=all
|
|
|
|
- BUILD_JOBS=2
|
2019-10-24 08:17:08 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages: ['clang-6.0', 'clang++-6.0']
|
|
|
|
sources: &sources
|
|
|
|
- llvm-toolchain-bionic-6.0
|
2019-10-15 03:05:05 +00:00
|
|
|
- os: linux
|
2019-10-21 01:46:05 +00:00
|
|
|
name: Android on Linux (armeabi-v7a)
|
|
|
|
arch: amd64
|
2018-01-21 14:05:34 +00:00
|
|
|
env:
|
2018-08-02 01:33:24 +00:00
|
|
|
- BUILD_OS=linux
|
2018-01-21 14:05:34 +00:00
|
|
|
- BUILD_MODE=android
|
2019-10-21 01:46:05 +00:00
|
|
|
- BUILD_JOBS=2
|
2019-10-21 09:08:57 +00:00
|
|
|
- BUILD_ARCH=armeabi-v7a
|
2019-10-21 01:46:05 +00:00
|
|
|
- ANDROID_HOME="$HOME/android-sdk"
|
|
|
|
- ANDROID_SDK="$HOME/android-sdk"
|
|
|
|
- ANDROID_NDK="$HOME/android-ndk"
|
|
|
|
- ANDROID_SDK_ROOT="$ANDROID_SDK"
|
|
|
|
- ANDROID_NDK_ROOT="$ANDROID_NDK"
|
2018-01-21 14:05:34 +00:00
|
|
|
- os: linux
|
2019-10-21 01:46:05 +00:00
|
|
|
name: Android on Linux (aarch64)
|
|
|
|
arch: amd64
|
2018-01-21 14:05:34 +00:00
|
|
|
env:
|
2018-08-02 01:33:24 +00:00
|
|
|
- BUILD_OS=linux
|
2018-01-21 14:05:34 +00:00
|
|
|
- BUILD_MODE=android
|
2019-10-21 01:46:05 +00:00
|
|
|
- BUILD_JOBS=2
|
2019-10-21 09:08:57 +00:00
|
|
|
- BUILD_ARCH=aarch64
|
2019-10-21 01:46:05 +00:00
|
|
|
- ANDROID_HOME="$HOME/android-sdk"
|
|
|
|
- ANDROID_SDK="$HOME/android-sdk"
|
|
|
|
- ANDROID_NDK="$HOME/android-ndk"
|
|
|
|
- ANDROID_SDK_ROOT="$ANDROID_SDK"
|
|
|
|
- ANDROID_NDK_ROOT="$ANDROID_NDK"
|
2018-01-21 14:05:34 +00:00
|
|
|
- os: linux
|
2019-10-21 01:46:05 +00:00
|
|
|
name: Android on Linux (x86)
|
|
|
|
arch: amd64
|
2018-01-21 14:05:34 +00:00
|
|
|
env:
|
2018-08-02 01:33:24 +00:00
|
|
|
- BUILD_OS=linux
|
2018-01-21 14:05:34 +00:00
|
|
|
- BUILD_MODE=android
|
2019-10-21 01:46:05 +00:00
|
|
|
- BUILD_JOBS=2
|
2019-10-21 09:08:57 +00:00
|
|
|
- BUILD_ARCH=x86
|
2019-10-21 01:46:05 +00:00
|
|
|
- ANDROID_HOME="$HOME/android-sdk"
|
|
|
|
- ANDROID_SDK="$HOME/android-sdk"
|
|
|
|
- ANDROID_NDK="$HOME/android-ndk"
|
|
|
|
- ANDROID_SDK_ROOT="$ANDROID_SDK"
|
|
|
|
- ANDROID_NDK_ROOT="$ANDROID_NDK"
|
2018-01-21 14:05:34 +00:00
|
|
|
- os: linux
|
2019-10-21 01:46:05 +00:00
|
|
|
name: Android on Linux (x86_64)
|
|
|
|
arch: amd64
|
2018-01-21 14:05:34 +00:00
|
|
|
env:
|
2018-08-02 01:33:24 +00:00
|
|
|
- BUILD_OS=linux
|
2018-01-21 14:05:34 +00:00
|
|
|
- BUILD_MODE=android
|
2019-10-21 01:46:05 +00:00
|
|
|
- BUILD_JOBS=2
|
2019-10-21 09:08:57 +00:00
|
|
|
- BUILD_ARCH=x86_64
|
2019-10-21 01:46:05 +00:00
|
|
|
- ANDROID_HOME="$HOME/android-sdk"
|
|
|
|
- ANDROID_SDK="$HOME/android-sdk"
|
|
|
|
- ANDROID_NDK="$HOME/android-ndk"
|
|
|
|
- ANDROID_SDK_ROOT="$ANDROID_SDK"
|
|
|
|
- ANDROID_NDK_ROOT="$ANDROID_NDK"
|
2018-04-01 06:37:32 +00:00
|
|
|
- os: osx
|
2019-10-21 01:46:05 +00:00
|
|
|
osx_image: xcode10.1
|
|
|
|
name: iOS on OS X (iPhoneOS)
|
|
|
|
arch: amd64
|
2018-04-01 06:37:32 +00:00
|
|
|
env:
|
2018-08-02 01:33:24 +00:00
|
|
|
- BUILD_OS=osx
|
2018-04-01 06:37:32 +00:00
|
|
|
- BUILD_MODE=ios
|
2019-10-21 01:46:05 +00:00
|
|
|
- BUILD_JOBS=2
|
2019-10-21 09:08:57 +00:00
|
|
|
- BUILD_ARCH=iPhoneOS
|
Add ARMv8.4 cpu feature detection support (GH #685) (#687)
This PR adds ARMv8.4 cpu feature detection support. Previously we only needed ARMv8.1 and things were much easier. For example, ARMv8.1 `__ARM_FEATURE_CRYPTO` meant PMULL, AES, SHA-1 and SHA-256 were available. ARMv8.4 `__ARM_FEATURE_CRYPTO` means PMULL, AES, SHA-1, SHA-256, SHA-512, SHA-3, SM3 and SM4 are available.
We still use the same pattern as before. We make something available based on compiler version and/or preprocessor macros. But this time around we had to tighten things up a bit to ensure ARMv8.4 did not cross-pollinate down into ARMv8.1.
ARMv8.4 is largely untested at the moment. There is no hardware in the field and CI lacks QEMU with the relevant patches/support. We will probably have to revisit some of this stuff in the future.
Since this update applies to ARM gadgets we took the time to expand Android and iOS testing on Travis. Travis now tests more platforms, and includes Autotools and CMake builds, too.
2018-07-15 12:35:14 +00:00
|
|
|
- os: osx
|
2019-10-21 01:46:05 +00:00
|
|
|
osx_image: xcode10.1
|
|
|
|
name: iOS on OS X (Arm64)
|
|
|
|
arch: amd64
|
Add ARMv8.4 cpu feature detection support (GH #685) (#687)
This PR adds ARMv8.4 cpu feature detection support. Previously we only needed ARMv8.1 and things were much easier. For example, ARMv8.1 `__ARM_FEATURE_CRYPTO` meant PMULL, AES, SHA-1 and SHA-256 were available. ARMv8.4 `__ARM_FEATURE_CRYPTO` means PMULL, AES, SHA-1, SHA-256, SHA-512, SHA-3, SM3 and SM4 are available.
We still use the same pattern as before. We make something available based on compiler version and/or preprocessor macros. But this time around we had to tighten things up a bit to ensure ARMv8.4 did not cross-pollinate down into ARMv8.1.
ARMv8.4 is largely untested at the moment. There is no hardware in the field and CI lacks QEMU with the relevant patches/support. We will probably have to revisit some of this stuff in the future.
Since this update applies to ARM gadgets we took the time to expand Android and iOS testing on Travis. Travis now tests more platforms, and includes Autotools and CMake builds, too.
2018-07-15 12:35:14 +00:00
|
|
|
env:
|
2018-08-02 01:33:24 +00:00
|
|
|
- BUILD_OS=osx
|
Add ARMv8.4 cpu feature detection support (GH #685) (#687)
This PR adds ARMv8.4 cpu feature detection support. Previously we only needed ARMv8.1 and things were much easier. For example, ARMv8.1 `__ARM_FEATURE_CRYPTO` meant PMULL, AES, SHA-1 and SHA-256 were available. ARMv8.4 `__ARM_FEATURE_CRYPTO` means PMULL, AES, SHA-1, SHA-256, SHA-512, SHA-3, SM3 and SM4 are available.
We still use the same pattern as before. We make something available based on compiler version and/or preprocessor macros. But this time around we had to tighten things up a bit to ensure ARMv8.4 did not cross-pollinate down into ARMv8.1.
ARMv8.4 is largely untested at the moment. There is no hardware in the field and CI lacks QEMU with the relevant patches/support. We will probably have to revisit some of this stuff in the future.
Since this update applies to ARM gadgets we took the time to expand Android and iOS testing on Travis. Travis now tests more platforms, and includes Autotools and CMake builds, too.
2018-07-15 12:35:14 +00:00
|
|
|
- BUILD_MODE=ios
|
2019-10-21 01:46:05 +00:00
|
|
|
- BUILD_JOBS=2
|
2019-10-21 09:08:57 +00:00
|
|
|
- BUILD_ARCH=Arm64
|
2018-04-01 06:37:32 +00:00
|
|
|
- os: osx
|
2019-10-21 01:46:05 +00:00
|
|
|
osx_image: xcode10.1
|
|
|
|
name: iOS on OS X (WatchOS)
|
|
|
|
arch: amd64
|
2018-04-01 06:37:32 +00:00
|
|
|
env:
|
2018-08-02 01:33:24 +00:00
|
|
|
- BUILD_OS=osx
|
2018-04-01 06:37:32 +00:00
|
|
|
- BUILD_MODE=ios
|
2019-10-21 01:46:05 +00:00
|
|
|
- BUILD_JOBS=2
|
2019-10-21 09:08:57 +00:00
|
|
|
- BUILD_ARCH=WatchOS
|
2018-04-01 06:37:32 +00:00
|
|
|
- os: osx
|
2019-10-21 01:46:05 +00:00
|
|
|
osx_image: xcode10.1
|
|
|
|
name: iOS on OS X (AppleTVOS)
|
|
|
|
arch: amd64
|
2018-04-01 06:37:32 +00:00
|
|
|
env:
|
2018-08-02 01:33:24 +00:00
|
|
|
- BUILD_OS=osx
|
2018-04-01 06:37:32 +00:00
|
|
|
- BUILD_MODE=ios
|
2019-10-21 01:46:05 +00:00
|
|
|
- BUILD_JOBS=2
|
2019-10-21 09:08:57 +00:00
|
|
|
- BUILD_ARCH=AppleTVOS
|
2019-10-17 01:13:36 +00:00
|
|
|
- os: osx
|
2019-10-21 01:46:05 +00:00
|
|
|
osx_image: xcode10.1
|
|
|
|
name: iOS on OS X (iPhoneSimulator)
|
|
|
|
arch: amd64
|
2019-10-17 01:13:36 +00:00
|
|
|
env:
|
|
|
|
- BUILD_OS=osx
|
|
|
|
- BUILD_MODE=ios
|
2019-10-21 01:46:05 +00:00
|
|
|
- BUILD_JOBS=2
|
2019-10-21 09:08:57 +00:00
|
|
|
- BUILD_ARCH=iPhoneSimulator
|
2018-12-08 17:50:16 +00:00
|
|
|
- os: osx
|
2019-10-21 01:46:05 +00:00
|
|
|
osx_image: xcode10.1
|
|
|
|
name: iOS on OS X (WatchSimulator)
|
|
|
|
arch: amd64
|
2018-12-08 17:50:16 +00:00
|
|
|
env:
|
|
|
|
- BUILD_OS=osx
|
|
|
|
- BUILD_MODE=ios
|
2019-10-21 01:46:05 +00:00
|
|
|
- BUILD_JOBS=2
|
2019-10-21 09:08:57 +00:00
|
|
|
- BUILD_ARCH=WatchSimulator
|
2018-12-08 17:50:16 +00:00
|
|
|
- os: osx
|
2019-10-21 01:46:05 +00:00
|
|
|
osx_image: xcode10.1
|
|
|
|
name: iOS on OS X (AppleTVSimulator)
|
|
|
|
arch: amd64
|
2018-12-08 17:50:16 +00:00
|
|
|
env:
|
|
|
|
- BUILD_OS=osx
|
|
|
|
- BUILD_MODE=ios
|
2019-10-21 01:46:05 +00:00
|
|
|
- BUILD_JOBS=2
|
2019-10-21 09:08:57 +00:00
|
|
|
- BUILD_ARCH=AppleTVSimulator
|
2018-12-08 16:40:53 +00:00
|
|
|
|
|
|
|
allow_failures:
|
2018-04-01 06:37:32 +00:00
|
|
|
- os: osx
|
2019-10-21 01:46:05 +00:00
|
|
|
osx_image: xcode10.1
|
|
|
|
name: iOS on OS X (WatchOS)
|
2018-04-01 06:37:32 +00:00
|
|
|
env:
|
2018-08-02 01:33:24 +00:00
|
|
|
- BUILD_OS=osx
|
2018-04-01 06:37:32 +00:00
|
|
|
- BUILD_MODE=ios
|
2019-10-21 01:46:05 +00:00
|
|
|
- BUILD_JOBS=2
|
2019-10-21 09:08:57 +00:00
|
|
|
- BUILD_ARCH=WatchOS
|
2018-12-08 13:28:53 +00:00
|
|
|
- os: osx
|
2019-10-21 01:46:05 +00:00
|
|
|
osx_image: xcode10.1
|
|
|
|
name: iOS on OS X (iPhoneSimulator)
|
2018-12-08 13:28:53 +00:00
|
|
|
env:
|
|
|
|
- BUILD_OS=osx
|
|
|
|
- BUILD_MODE=ios
|
2019-10-21 01:46:05 +00:00
|
|
|
- BUILD_JOBS=2
|
2019-10-21 09:08:57 +00:00
|
|
|
- BUILD_ARCH=iPhoneSimulator
|
2019-10-23 16:40:45 +00:00
|
|
|
# We should be OK with PPC64 and GCC until Travis disallows
|
|
|
|
# access to the build machines. Clang is a differnt story.
|
2019-10-24 08:17:08 +00:00
|
|
|
# Clang 7.0 and below will likely have trouble due to
|
|
|
|
# https://bugs.llvm.org/show_bug.cgi?id=39704
|
2019-10-23 12:36:52 +00:00
|
|
|
- os: linux
|
|
|
|
name: Linux with GCC (all)
|
|
|
|
arch: ppc64le
|
|
|
|
compiler: gcc
|
|
|
|
- os: linux
|
|
|
|
name: Linux with Clang (all)
|
|
|
|
arch: ppc64le
|
|
|
|
compiler: clang
|
2018-04-06 11:21:53 +00:00
|
|
|
|
2018-01-21 14:05:34 +00:00
|
|
|
before_install:
|
|
|
|
- |
|
2018-08-02 01:33:24 +00:00
|
|
|
if [[ "$BUILD_OS" == "linux" ]] && [[ "$BUILD_MODE" == "android" ]]; then
|
Add ARMv8.4 cpu feature detection support (GH #685) (#687)
This PR adds ARMv8.4 cpu feature detection support. Previously we only needed ARMv8.1 and things were much easier. For example, ARMv8.1 `__ARM_FEATURE_CRYPTO` meant PMULL, AES, SHA-1 and SHA-256 were available. ARMv8.4 `__ARM_FEATURE_CRYPTO` means PMULL, AES, SHA-1, SHA-256, SHA-512, SHA-3, SM3 and SM4 are available.
We still use the same pattern as before. We make something available based on compiler version and/or preprocessor macros. But this time around we had to tighten things up a bit to ensure ARMv8.4 did not cross-pollinate down into ARMv8.1.
ARMv8.4 is largely untested at the moment. There is no hardware in the field and CI lacks QEMU with the relevant patches/support. We will probably have to revisit some of this stuff in the future.
Since this update applies to ARM gadgets we took the time to expand Android and iOS testing on Travis. Travis now tests more platforms, and includes Autotools and CMake builds, too.
2018-07-15 12:35:14 +00:00
|
|
|
# https://github.com/travis-ci/travis-ci/issues/9037
|
|
|
|
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A145
|
2018-08-02 01:33:24 +00:00
|
|
|
sudo apt-get update
|
|
|
|
bash TestScripts/install-android.sh
|
|
|
|
fi
|
|
|
|
if [[ "$BUILD_OS" == "linux" ]] && [[ "$BUILD_MODE" == "autotools" ]]; then
|
|
|
|
# https://github.com/travis-ci/travis-ci/issues/9037
|
|
|
|
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A145
|
2019-10-23 12:36:52 +00:00
|
|
|
sudo apt-get -y install autoconf automake libtool
|
2018-01-21 14:05:34 +00:00
|
|
|
fi
|
|
|
|
|
2017-05-26 14:08:44 +00:00
|
|
|
script:
|
2017-08-11 02:59:00 +00:00
|
|
|
- |
|
2018-01-21 16:02:42 +00:00
|
|
|
if [[ "$BUILD_MODE" == "ios" ]]; then
|
2018-08-02 02:01:52 +00:00
|
|
|
cp TestScripts/setenv-ios.sh .
|
|
|
|
cp TestScripts/cryptest-ios.sh .
|
2019-10-21 09:08:57 +00:00
|
|
|
bash cryptest-ios.sh "$BUILD_ARCH"
|
2018-01-21 14:05:34 +00:00
|
|
|
elif [[ "$BUILD_MODE" == "android" ]]; then
|
2019-10-15 22:05:54 +00:00
|
|
|
cp TestScripts/setenv-android.sh .
|
2018-08-02 02:01:52 +00:00
|
|
|
cp TestScripts/cryptest-android.sh .
|
2019-10-21 09:08:57 +00:00
|
|
|
bash cryptest-android.sh "$BUILD_ARCH"
|
Add ARMv8.4 cpu feature detection support (GH #685) (#687)
This PR adds ARMv8.4 cpu feature detection support. Previously we only needed ARMv8.1 and things were much easier. For example, ARMv8.1 `__ARM_FEATURE_CRYPTO` meant PMULL, AES, SHA-1 and SHA-256 were available. ARMv8.4 `__ARM_FEATURE_CRYPTO` means PMULL, AES, SHA-1, SHA-256, SHA-512, SHA-3, SM3 and SM4 are available.
We still use the same pattern as before. We make something available based on compiler version and/or preprocessor macros. But this time around we had to tighten things up a bit to ensure ARMv8.4 did not cross-pollinate down into ARMv8.1.
ARMv8.4 is largely untested at the moment. There is no hardware in the field and CI lacks QEMU with the relevant patches/support. We will probably have to revisit some of this stuff in the future.
Since this update applies to ARM gadgets we took the time to expand Android and iOS testing on Travis. Travis now tests more platforms, and includes Autotools and CMake builds, too.
2018-07-15 12:35:14 +00:00
|
|
|
elif [[ "$BUILD_MODE" == "autotools" ]]; then
|
2018-08-02 02:01:52 +00:00
|
|
|
cp TestScripts/cryptest-autotools.sh .
|
2018-08-02 01:33:24 +00:00
|
|
|
bash cryptest-autotools.sh
|
Add ARMv8.4 cpu feature detection support (GH #685) (#687)
This PR adds ARMv8.4 cpu feature detection support. Previously we only needed ARMv8.1 and things were much easier. For example, ARMv8.1 `__ARM_FEATURE_CRYPTO` meant PMULL, AES, SHA-1 and SHA-256 were available. ARMv8.4 `__ARM_FEATURE_CRYPTO` means PMULL, AES, SHA-1, SHA-256, SHA-512, SHA-3, SM3 and SM4 are available.
We still use the same pattern as before. We make something available based on compiler version and/or preprocessor macros. But this time around we had to tighten things up a bit to ensure ARMv8.4 did not cross-pollinate down into ARMv8.1.
ARMv8.4 is largely untested at the moment. There is no hardware in the field and CI lacks QEMU with the relevant patches/support. We will probably have to revisit some of this stuff in the future.
Since this update applies to ARM gadgets we took the time to expand Android and iOS testing on Travis. Travis now tests more platforms, and includes Autotools and CMake builds, too.
2018-07-15 12:35:14 +00:00
|
|
|
elif [[ "$BUILD_MODE" == "cmake" ]]; then
|
2018-08-02 02:01:52 +00:00
|
|
|
cp TestScripts/cryptest-cmake.sh .
|
2018-08-02 01:33:24 +00:00
|
|
|
bash cryptest-cmake.sh
|
2019-10-15 03:05:05 +00:00
|
|
|
elif [[ "$BUILD_MODE" == "pem" ]]; then
|
|
|
|
cp TestScripts/cryptest-pem.sh .
|
|
|
|
bash cryptest-pem.sh
|
2017-08-17 05:47:08 +00:00
|
|
|
elif [[ "$BUILD_MODE" == "debug" ]]; then
|
2017-09-17 01:23:35 +00:00
|
|
|
CXXFLAGS="-DDEBUG -g2 -O1" make -j "$BUILD_JOBS"
|
2017-08-23 20:13:20 +00:00
|
|
|
./cryptest.exe v
|
|
|
|
./cryptest.exe tv all
|
2017-08-11 02:59:00 +00:00
|
|
|
else
|
2017-09-17 01:23:35 +00:00
|
|
|
make "$BUILD_MODE" -j "$BUILD_JOBS"
|
2017-08-11 02:59:00 +00:00
|
|
|
./cryptest.exe v
|
|
|
|
./cryptest.exe tv all
|
|
|
|
fi
|
2017-05-27 07:08:07 +00:00
|
|
|
|
2019-10-21 01:46:05 +00:00
|
|
|
# Whitelist branches to avoid testing feature branches twice
|
2017-05-26 14:08:44 +00:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
2019-10-21 01:46:05 +00:00
|
|
|
- /\/ci$/
|
2017-05-26 14:08:44 +00:00
|
|
|
|
2017-05-31 08:36:31 +00:00
|
|
|
notifications:
|
2017-05-31 11:22:04 +00:00
|
|
|
email:
|
|
|
|
recipients:
|
|
|
|
- cryptopp-build@googlegroups.com
|
|
|
|
on_success: always # default: change
|
2017-08-11 02:59:00 +00:00
|
|
|
on_failure: always # default: always
|