Update snapshots to also build/test on OSX

This commit is contained in:
Lars Bergstrom 2014-06-18 16:47:25 -05:00
parent 6d3687a613
commit 94415ce996
5 changed files with 24 additions and 10 deletions

View file

@ -1,19 +1,19 @@
language: c
os:
- linux
- osx
install:
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- sudo apt-get update -q
- sudo apt-get install -qq --force-yes -y autoconf2.13 gperf libxxf86vm-dev libglfw-dev libstdc++6-4.7-dev
- echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | sudo debconf-set-selections
- sudo apt-get install ttf-mscorefonts-installer > /dev/null
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then ./travis.linux.install.deps.sh; fi
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then ./travis.osx.install.deps.sh; fi
before_script:
- mkdir -p build
script: |
cd build
../configure
make -j2
make check
script:
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then ./travis.linux.script.sh; fi
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then ./travis.osx.script.sh; fi
git:
submodules: true
@ -25,4 +25,5 @@ branches:
only:
- travis
- master
after_success:

5
travis.linux.install.deps.sh Executable file
View file

@ -0,0 +1,5 @@
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo apt-get update -q
sudo apt-get install -qq --force-yes -y autoconf2.13 gperf libxxf86vm-dev libglfw-dev libstdc++6-4.7-dev
echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | sudo debconf-set-selections
sudo apt-get install ttf-mscorefonts-installer > /dev/null

3
travis.linux.script.sh Executable file
View file

@ -0,0 +1,3 @@
cd build
../configure
make -j2 && make check-servo

2
travis.osx.install.deps.sh Executable file
View file

@ -0,0 +1,2 @@
brew install https://raw.github.com/Homebrew/homebrew-versions/master/autoconf213.rb
brew install automake libtool pkg-config

3
travis.osx.script.sh Executable file
View file

@ -0,0 +1,3 @@
cd build
../configure
make -j2 && make check-servo && make check-content && make check-ref-cpu