Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
46 lines (42 sloc) 881 Bytes
language: c++
os:
- linux
- osx
dist: xenial
sudo: false
script:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
cmake -D test=on . ;
else
CXX=/usr/bin/g++-5 CC=/usr/bin/gcc-5 cmake -Dtest=on . ;
fi
- make -j2
- make test
- if [[ "$TRAVIS_TAG" ]]; then
cmake -D mode=static . ;
make -j2 ;
fi
- if [ "$TRAVIS_TAG" ]; then
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
zip Macos.zip libmodio.a libmodio.dylib;
else
zip Linux.zip libmodio.a libmodio.so;
fi
fi
deploy:
- provider: releases
api_key: "${token}"
file:
- "Linux.zip"
skip_cleanup: true
on:
tags: true
condition: $TRAVIS_OS_NAME != "osx"
- provider: releases
api_key: "${token}"
file:
- "Macos.zip"
skip_cleanup: true
on:
tags: true
condition: $TRAVIS_OS_NAME == "osx"
You can’t perform that action at this time.