Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

T-CI: re-enable macOS build #19

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 46 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,19 +108,57 @@ matrix:
# env:
# - MATRIX_EVAL="CC=clang-5.0"

# GCC on macOS
- os: osx
osx_image: xcode9.4
env:
- MATRIX_EVAL="CC=gcc-4.9"

- os: osx
osx_image: xcode9.4
env:
- MATRIX_EVAL="brew install gcc@5 && CC=gcc-5"

- os: osx
osx_image: xcode9.4
env:
- MATRIX_EVAL="brew install gcc@6 && CC=gcc-6"

- os: osx
osx_image: xcode9.4
env:
- MATRIX_EVAL="brew install gcc@7 && CC=gcc-7"

# Clang on macOS
- os: osx
osx_image: xcode9.4
env:
- MATRIX_EVAL="brew install llvm && brew link --overwrite llvm --force && CC=/usr/local/bin/clang"


before_install:
- export MAKEFLAGS="-j$(nproc)"
- |
sudo systemctl stop apt-daily.timer &&
sudo systemctl stop apt-daily.service &&
sudo systemctl kill --kill-who=all apt-daily.service &&
while ! (systemctl list-units --all apt-daily.service | fgrep -q dead) ; do
sleep 1
done &&
sudo apt-get update -q
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update
else
sudo systemctl stop apt-daily.timer &&
sudo systemctl stop apt-daily.service &&
sudo systemctl kill --kill-who=all apt-daily.service &&
while ! (systemctl list-units --all apt-daily.service | fgrep -q dead) ; do
sleep 1
done &&
sudo apt-get update -q
fi

install:
- sudo apt-get install -y libvips-dev uuid-dev
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew unlink python
brew install vips --with-imagemagick --without-graphicsmagick --with-openexr --with-openslide
else
sudo apt-get install -y libvips-dev uuid-dev
fi

before_script:
- eval "${MATRIX_EVAL}"
Expand Down
2 changes: 0 additions & 2 deletions src/regions/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ $(TARGET): main.o region.o llist.o name.o

%.o: %.c
$(CC) -MMD -c $(CFLAGS) -o $@ $<
sed -i'.bak' 's,\($*\.o\)[ :]*\(.*\),$@:$$\(wildcard \2\),g' $*.d
$(RM) $*.d.bak

test: $(TESTS)
for t in $^ ; do echo "$$t:" ; "./$$t" ; done
Expand Down