Skip to content

Commit 2c5725c

Browse files
authored
Merge pull request #1864 from aytekinar/patch-1
Add ARM tests on Travis
2 parents ae02a57 + e366693 commit 2c5725c

File tree

1 file changed

+37
-6
lines changed

1 file changed

+37
-6
lines changed

.travis.yml

Lines changed: 37 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@ dist: precise
44
sudo: true
55
language: c
66

7-
jobs:
7+
matrix:
88
include:
99
- &test-ubuntu
1010
os: linux
11-
stage: test
1211
compiler: gcc
1312
addons:
1413
apt:
@@ -59,7 +58,6 @@ jobs:
5958
- BTYPE="BINARY=32"
6059

6160
- os: linux
62-
stage: test
6361
compiler: gcc
6462
addons:
6563
apt:
@@ -80,7 +78,6 @@ jobs:
8078
# that don't require sudo.
8179
- &test-alpine
8280
os: linux
83-
stage: test
8481
dist: trusty
8582
sudo: true
8683
language: minimal
@@ -124,7 +121,6 @@ jobs:
124121

125122
- &test-cmake
126123
os: linux
127-
stage: test
128124
compiler: clang
129125
addons:
130126
apt:
@@ -153,7 +149,6 @@ jobs:
153149

154150
- &test-macos
155151
os: osx
156-
stage: test
157152
osx_image: xcode8
158153
before_script:
159154
- COMMON_FLAGS="DYNAMIC_ARCH=1 TARGET=NEHALEM NUM_THREADS=32"
@@ -168,6 +163,42 @@ jobs:
168163
env:
169164
- BTYPE="BINARY=32"
170165

166+
- &emulated-arm
167+
dist: trusty
168+
sudo: required
169+
services: docker
170+
env: IMAGE_ARCH=arm32 TARGET_ARCH=ARMV6 COMPILER=gcc
171+
name: "Emulated Build for ARMV6 with gcc"
172+
before_install: sudo docker run --rm --privileged multiarch/qemu-user-static:register --reset
173+
script: |
174+
echo "FROM openblas/alpine:${IMAGE_ARCH}
175+
COPY . /tmp/openblas
176+
RUN mkdir /tmp/openblas/build && \
177+
cd /tmp/openblas/build && \
178+
CC=${COMPILER} cmake -D DYNAMIC_ARCH=OFF \
179+
-D TARGET=${TARGET_ARCH} \
180+
-D BUILD_SHARED_LIBS=ON \
181+
-D BUILD_WITHOUT_LAPACK=ON \
182+
-D BUILD_WITHOUT_CBLAS=ON \
183+
-D CMAKE_BUILD_TYPE=Release ../ && \
184+
cmake --build ." > Dockerfile
185+
docker build .
186+
- <<: *emulated-arm
187+
env: IMAGE_ARCH=arm32 TARGET_ARCH=ARMV6 COMPILER=clang
188+
name: "Emulated Build for ARMV6 with clang"
189+
- <<: *emulated-arm
190+
env: IMAGE_ARCH=arm64 TARGET_ARCH=ARMV8 COMPILER=gcc
191+
name: "Emulated Build for ARMV8 with gcc"
192+
- <<: *emulated-arm
193+
env: IMAGE_ARCH=arm64 TARGET_ARCH=ARMV8 COMPILER=clang
194+
name: "Emulated Build for ARMV8 with clang"
195+
196+
allow_failures:
197+
- env: IMAGE_ARCH=arm32 TARGET_ARCH=ARMV6 COMPILER=gcc
198+
- env: IMAGE_ARCH=arm32 TARGET_ARCH=ARMV6 COMPILER=clang
199+
- env: IMAGE_ARCH=arm64 TARGET_ARCH=ARMV8 COMPILER=gcc
200+
- env: IMAGE_ARCH=arm64 TARGET_ARCH=ARMV8 COMPILER=clang
201+
171202
# whitelist
172203
branches:
173204
only:

0 commit comments

Comments
 (0)