Meeh 11 years ago
parent
commit
39577179f4
  1. 50
      .travis.yml

50
.travis.yml

@ -2,22 +2,22 @@
# Documentation: # Documentation:
# - http://docs.travis-ci.com/user/build-configuration/#The-Build-Matrix # - http://docs.travis-ci.com/user/build-configuration/#The-Build-Matrix
# - http://blog.travis-ci.com/2014-05-13-multi-os-feature-available/ # - http://blog.travis-ci.com/2014-05-13-multi-os-feature-available/
language: cpp
compiler: gcc
os: os:
- linux - linux
- osx language:
- cpp
compiler:
- gcc
branches: branches:
only: only:
- master - master
before_script: install:
- if [[ "$os" == "linux" ]]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi # GCC 4.7 - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test # GCC 4.7
- if [[ "$os" == "linux" ]]; then sudo add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu/ quantal main universe"; fi # Boost 1.50 - sudo add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu/ quantal main universe" # Boost 1.50
- if [[ "$os" == "linux" ]]; then sudo apt-get update -qq; fi - sudo apt-get update -qq
- if [[ "$os" == "linux" ]]; then sudo apt-get install -qq libboost1.50-all-dev libcrypto++9 libcrypto++-dev; fi - sudo apt-get install -qq libboost1.50-all-dev libcrypto++9 libcrypto++-dev
- if [[ "$os" == "osx" ]]; then brew doctor;brew install boost cryptopp; fi
script: script:
- if [[ "$os" == "osx" ]]; then make -f Makefile.osx; else; make; fi - make
notifications: notifications:
email: email:
recipients: recipients:
@ -28,8 +28,36 @@ notifications:
channels: channels:
- "irc.freenode.net#i2p-dev" - "irc.freenode.net#i2p-dev"
template: template:
- "%{repository}/%{branch} (%{commit} - %{author}): %{message}" - "%{repository}/%{branch} [linux] (%{commit} - %{author}): %{message}"
on_failure: always on_failure: always
on_success: change on_success: change
---
os:
- osx
language:
- cpp
compiler:
- clang
branches:
only:
- master
install:
- brew doctor;brew install boost cryptopp
script:
- make -f Makefile.osx
notifications:
email:
recipients:
- meeh@sigterm.no
on_success: change
on_failure: always
irc:
channels:
- "irc.freenode.net#i2p-dev"
template:
- "%{repository}/%{branch} [osx] (%{commit} - %{author}): %{message}"
on_failure: always
on_success: change

Loading…
Cancel
Save