Skip to content

Commit 693169e

Browse files
authored
Merge pull request #218 from 2trill2spill/master
Add OSX to travis-ci build.
2 parents 95435af + e12cef3 commit 693169e

File tree

2 files changed

+20
-5
lines changed

2 files changed

+20
-5
lines changed

.travis.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
1-
language: ruby
2-
rvm:
3-
- "1.9.3"
4-
- "2.0.0"
1+
language: c
2+
3+
matrix:
4+
include:
5+
- os: osx
6+
compiler: clang
7+
osx_image: xcode7.3
8+
- os: linux
9+
dist: trusty
10+
compiler: gcc
11+
12+
before_install:
13+
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then rvm install 2.1 && rvm use 2.1 && ruby -v; fi
514
script:
615
- cd test && rake ci
716
- make -s

test/Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
CC = gcc
22
ifeq ($(shell uname -s), Darwin)
33
CC = clang
4+
CFLAGS += -std=c99 -pedantic -Wall -Weverything -Werror
5+
CFLAGS += -Wno-unknown-warning-option -Wno-switch-enum
6+
CFLAGS += -Wno-padded -Wno-double-promotion -Wno-missing-noreturn
7+
CFLAGS += -Wno-missing-prototypes
48
endif
5-
#DEBUG = -O0 -g
9+
ifeq ($(shell uname -s), Linux)
610
CFLAGS += -std=c99 -pedantic -Wall -Wextra -Werror
11+
endif
12+
#DEBUG = -O0 -g
713
CFLAGS += $(DEBUG)
814
DEFINES = -D UNITY_OUTPUT_CHAR=putcharSpy
915
DEFINES += -D UNITY_SUPPORT_64 -D UNITY_INCLUDE_DOUBLE -D UNITY_NO_WEAK

0 commit comments

Comments
 (0)