mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-08-25 12:39:58 +00:00
Merge pull request #218 from 2trill2spill/master
Add OSX to travis-ci build.
This commit is contained in:
+13
-4
@@ -1,7 +1,16 @@
|
|||||||
language: ruby
|
language: c
|
||||||
rvm:
|
|
||||||
- "1.9.3"
|
matrix:
|
||||||
- "2.0.0"
|
include:
|
||||||
|
- os: osx
|
||||||
|
compiler: clang
|
||||||
|
osx_image: xcode7.3
|
||||||
|
- os: linux
|
||||||
|
dist: trusty
|
||||||
|
compiler: gcc
|
||||||
|
|
||||||
|
before_install:
|
||||||
|
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then rvm install 2.1 && rvm use 2.1 && ruby -v; fi
|
||||||
script:
|
script:
|
||||||
- cd test && rake ci
|
- cd test && rake ci
|
||||||
- make -s
|
- make -s
|
||||||
|
|||||||
+7
-1
@@ -1,9 +1,15 @@
|
|||||||
CC = gcc
|
CC = gcc
|
||||||
ifeq ($(shell uname -s), Darwin)
|
ifeq ($(shell uname -s), Darwin)
|
||||||
CC = clang
|
CC = clang
|
||||||
|
CFLAGS += -std=c99 -pedantic -Wall -Weverything -Werror
|
||||||
|
CFLAGS += -Wno-unknown-warning-option -Wno-switch-enum
|
||||||
|
CFLAGS += -Wno-padded -Wno-double-promotion -Wno-missing-noreturn
|
||||||
|
CFLAGS += -Wno-missing-prototypes
|
||||||
|
endif
|
||||||
|
ifeq ($(shell uname -s), Linux)
|
||||||
|
CFLAGS += -std=c99 -pedantic -Wall -Wextra -Werror
|
||||||
endif
|
endif
|
||||||
#DEBUG = -O0 -g
|
#DEBUG = -O0 -g
|
||||||
CFLAGS += -std=c99 -pedantic -Wall -Wextra -Werror
|
|
||||||
CFLAGS += $(DEBUG)
|
CFLAGS += $(DEBUG)
|
||||||
DEFINES = -D UNITY_OUTPUT_CHAR=putcharSpy
|
DEFINES = -D UNITY_OUTPUT_CHAR=putcharSpy
|
||||||
DEFINES += -D UNITY_SUPPORT_64 -D UNITY_INCLUDE_DOUBLE -D UNITY_NO_WEAK
|
DEFINES += -D UNITY_SUPPORT_64 -D UNITY_INCLUDE_DOUBLE -D UNITY_NO_WEAK
|
||||||
|
|||||||
Reference in New Issue
Block a user