From 09b40f303eb54d8f0b78d5e13d7eda82771b5b0b Mon Sep 17 00:00:00 2001 From: Sen Han <00hnes@gmail.com> Date: Tue, 24 Jul 2018 18:15:04 +0800 Subject: [PATCH] add MacOS built scripts support in .travis.yml --- .travis.yml | 58 +++++++++++++---------------------------------------- 1 file changed, 14 insertions(+), 44 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6888fda..48ac560 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,51 +11,21 @@ compiler: - gcc - clang -install: - - sudo apt-get install -qq -y libreadline-dev libncurses5-dev libpcre3-dev libssl-dev perl make build-essential valgrind gcc-multilib g++-multilib libc6-dbg libc6-dbg:i386 - - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test - - sudo apt-get update - - sudo apt-key update - script: - echo $TRAVIS_EVENT_TYPE - - ulimit -c unlimited - - cat /proc/cpuinfo && free -m && uname -a - - cc --version - - gcc --version + - echo $TRAVIS_OS_NAME - echo $CC - - ls /usr/include - - ls /usr/include/valgrind + - cc --version + - if [ "$TRAVIS_OS_NAME" = "osx" ] ; then brew update; brew install grep --with-default-names; fi + - if [ "$TRAVIS_OS_NAME" = "osx" ] ; then brew install gnu-sed --with-default-names; fi + - if [ "$TRAVIS_OS_NAME" = "linux" ] ; then sudo apt-get install -qq -y libreadline-dev libncurses5-dev libpcre3-dev libssl-dev perl make build-essential valgrind gcc-multilib g++-multilib libc6-dbg libc6-dbg:i386 ; fi - date - - mkdir output - - bash make.sh - - ls output - - ls output | wc -l - - cd output - - bash ../test.sh - - cd .. - - rm -fr output - - mkdir output - - bash make.sh -o no-m32 - - ls output - - ls output | wc -l - - cd output - - bash ../test.sh - - cd .. - - rm -fr output - - mkdir output - - bash make.sh -o no-valgrind - - ls output - - ls output | wc -l - - cd output - - bash ../test.sh - - cd .. - - rm -fr output - - mkdir output - - bash make.sh -o no-valgrind -o no-m32 - - ls output - - ls output | wc -l - - cd output - - bash ../test.sh - - cd .. - - rm -fr output + - echo "" + - if [ "$TRAVIS_OS_NAME" = "linux" ] ; then mkdir output ; bash make.sh ; ls output ; ls output | wc -l ; cd output ; bash ../test.sh ; cd .. ; rm -fr output; fi + - echo "" + - if [ "$TRAVIS_OS_NAME" = "linux" ] ; then mkdir output ; bash make.sh -o no-m32 ; ls output ; ls output | wc -l ; cd output ; bash ../test.sh ; cd .. ; rm -fr output; fi + - echo "" + - mkdir output ; bash make.sh -o no-valgrind ; ls output ; ls output | wc -l ; cd output ; bash ../test.sh ; cd .. ; rm -fr output + - echo "" + - if [ "$TRAVIS_OS_NAME" = "linux" ] ; then mkdir output ; bash make.sh -o no-valgrind -o no-m32 ; ls output ; ls output | wc -l ; cd output ; bash ../test.sh ; cd .. ; rm -fr output; fi + - echo "" ; date