Now, if only they had Windows! -viral
On Friday, October 10, 2014 11:19:26 PM UTC+5:30, Tony Kelman wrote: > > Heads up for package developers - looks like Travis got some additional > capacity and is accepting new repositories for multi-OS support. See > http://docs.travis-ci.com/user/multi-os/ - you need to send an email to > supp...@travis-ci.com asking them to enable multi-OS support for your > package, with a link to the repository. Then change your .travis.yml as > follows: > > Add > ``` > os: > - linux > - osx > ``` > > Replace > ``` > before_install: > - sudo add-apt-repository ppa:staticfloat/julia-deps -y > - sudo add-apt-repository ppa:staticfloat/${JULIAVERSION} -y > - sudo apt-get update -qq -y > - sudo apt-get install libpcre3-dev julia -y > ``` > > with > ``` > before_install: > - if [ `uname` = "Linux" ]; then > sudo add-apt-repository ppa:staticfloat/julia-deps -y; > sudo add-apt-repository ppa:staticfloat/${JULIAVERSION} -y; > sudo apt-get update -qq -y; > sudo apt-get install libpcre3-dev julia -y; > elif [ `uname` = "Darwin" ]; then > if [ "$JULIAVERSION" = "julianightlies" ]; then > wget -O julia.dmg "http://status.julialang.org/download/osx10.7+ > "; > else > wget -O julia.dmg "http://status.julialang.org/stable/osx10.7+"; > fi; > hdiutil mount julia.dmg; > cp -Ra /Volumes/Julia/*.app/Contents/Resources/julia ~; > export PATH="$PATH:$(echo ~)/julia/bin"; > fi > ``` > > Elliot got this working a while back when Travis originally announced the > feature, I just tweaked it a little so it works whether or not you've > enabled multi-OS support. To force a build on a Mac worker before Travis > responds to your email, you can temporarily change `language: cpp` to > `language: objective-c`. I think you'll need to change it back to get > builds on both Linux and Mac once support is enabled. > > I'll probably make a PR to base to turn this on in the default .travis.yml > from Pkg.generate, since it doesn't hurt anything. > > -Tony > >