Skip to content

Commit

Permalink
Merge pull request #220 from gusano/topic/travis-linux
Browse files Browse the repository at this point in the history
[travis] add build for linux
  • Loading branch information
gusano committed Nov 30, 2018
2 parents 5652dd7 + 5682017 commit f554140
Showing 1 changed file with 13 additions and 16 deletions.
29 changes: 13 additions & 16 deletions .travis.yml
@@ -1,33 +1,31 @@
language: objective-c
language: cpp

os:
- osx
matrix:
fast_finish: true
include:
- os: linux
sudo: required
dist: trusty
- os: osx

cache:
- ccache
- apt
- bundler

before_install:
- ifmac () { if [[ $TRAVIS_OS_NAME == osx ]]; then eval $@; fi; }
- iflin () { if [[ $TRAVIS_OS_NAME == linux ]]; then eval $@; fi; }
- ifmac brew install cmake || true
- iflin sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- iflin sudo add-apt-repository -y ppa:andykimpe/cmake # backport of cmake 2.8.12
- iflin sudo add-apt-repository -y ppa:ondrej/php5 # libicu-dev 52
- iflin sudo apt-get update
- iflin sudo apt-get install libicu-dev=52.1-1+debphp.org~precise+1 gcc-4.7 g++-4.7 aptitude build-essential libfftw3-dev libxt-dev pkg-config cmake=2.8.12.2-3 libstdc++5
- iflin sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 40 --slave /usr/bin/g++ g++ /usr/bin/g++-4.6
- iflin sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.7 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.7
- iflin sudo update-alternatives --auto gcc
- iflin sudo apt-get install libicu-dev libfftw3-dev libxt-dev pkg-config libstdc++5
- git clone https://github.com/supercollider/supercollider.git

before_script:
- mkdir BUILD
- cd BUILD
- mkdir BUILD && cd BUILD
- cmake -DCMAKE_INSTALL_PREFIX:PATH=$PWD/SC3plugins -DCMAKE_BUILD_TYPE=Release -DSC_PATH=../supercollider ..

script:
- make install
- iflin make -j 2
- ifmac make install
- ifmac mkdir -p $HOME/artifacts
- ifmac zip -q -r $HOME/artifacts/Plugins-$TRAVIS_COMMIT.zip SC3plugins

Expand Down Expand Up @@ -72,7 +70,6 @@ deploy:
after-deploy:
- "echo S3 Build Location: $S3_URL"


notifications:
on_success: change
on_failure: change
Expand Down

0 comments on commit f554140

Please sign in to comment.