Add support for OS X builds on Travis CI

This commit is contained in:
Zeex 2016-07-03 03:11:44 +06:00
parent c6bc673ec9
commit 0f7c56e34c

View File

@ -1,20 +1,33 @@
language: c language: c
compiler:
- gcc os:
install: - linux
- sudo apt-get update -qq - osx
- sudo apt-get install -y gcc-multilib g++-multilib cmake
addons:
apt:
packages:
- gcc-multilib
- cmake
brew:
packages:
- cmake
before_script: before_script:
- cmake source/compiler -DCMAKE_C_FLAGS=-m32 -DCPACK_GENERATOR=TGZ - cmake source/compiler -DCMAKE_C_FLAGS=-m32 -DCPACK_GENERATOR="TGZ;ZIP"
script: script:
- make - make
- make package - make package
deploy: deploy:
provider: releases provider: releases
api_key: api_key:
secure: gDAuRNlF2uVhVHyZtJrX6MwNxnkfkQzohrC/6UcKAgqt+NKs4vZyq5FzTUceiDAkB0se70ZVx08e9ibAiXP/b7D1MPkAEiRxt9J6Vu3x6Bi1kPPuK5RfjFeT3gc1SbrULAP8Nz0NdU0chUhei6/V5NGhTegwp925DJOISq7+Ibw= secure: gDAuRNlF2uVhVHyZtJrX6MwNxnkfkQzohrC/6UcKAgqt+NKs4vZyq5FzTUceiDAkB0se70ZVx08e9ibAiXP/b7D1MPkAEiRxt9J6Vu3x6Bi1kPPuK5RfjFeT3gc1SbrULAP8Nz0NdU0chUhei6/V5NGhTegwp925DJOISq7+Ibw=
file_glob: true file_glob: true
file: 'pawnc-*-linux.tar.gz' file:
- 'pawnc-*-linux.tar.gz'
- 'pawnc-*-darwin.zip'
skip_cleanup: true skip_cleanup: true
on: on:
tags: true tags: true