Skip to content

Commit 50c52d2

Browse files
committed
Use Travis build matrix to test different platforms
Create a clean, minimal, cross-platform Travis script with a build matrix for testing different operating systems and architectures.
1 parent e2fc5dd commit 50c52d2

2 files changed

Lines changed: 12 additions & 35 deletions

File tree

.travis.sh

Lines changed: 0 additions & 26 deletions
This file was deleted.

.travis.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
1+
sudo: required
2+
dist: trusty
13
language: c
2-
script: ./.travis.sh
3-
os:
4-
- linux
5-
env:
6-
- TARGET=host
7-
- TARGET=arm32
4+
5+
script:
6+
- make $FLAGS
7+
- make check $FLAGS
8+
- make clean && git status --ignored --porcelain && test -z "$(git status --ignored --porcelain)"
9+
810
matrix:
9-
exclude:
10-
- os: osx
11-
env: TARGET=arm32
11+
include:
12+
- os: linux
13+
env: FLAGS="CC=gcc"
14+
1215
notifications:
1316
email: false

0 commit comments

Comments
 (0)