Skip to content

Commit

Permalink
Create .travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
snoe925 committed Feb 20, 2018
1 parent 1a27cdb commit 337ff48
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
language: c

sudo: true

os:
- linux
- osx

before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install tcl-tk; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew link --force --overwrite tcl-tk; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install zookeeper; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update -qq; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y tcl8.6-dev; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y libzookeeper-mt-dev libzookeeper-mt2; fi

script:
- autoreconf -vi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ./configure --with-tcl=/usr/local/lib; else ./configure; fi
- make
- sudo make install

0 comments on commit 337ff48

Please sign in to comment.