Browse Source

add MacOS built scripts support in .travis.yml

pull/14/merge
Sen Han 6 years ago
parent
commit
09b40f303e
  1. 58
      .travis.yml

58
.travis.yml

@ -11,51 +11,21 @@ compiler:
- gcc - gcc
- clang - 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: script:
- echo $TRAVIS_EVENT_TYPE - echo $TRAVIS_EVENT_TYPE
- ulimit -c unlimited - echo $TRAVIS_OS_NAME
- cat /proc/cpuinfo && free -m && uname -a
- cc --version
- gcc --version
- echo $CC - echo $CC
- ls /usr/include - cc --version
- ls /usr/include/valgrind - 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 - date
- mkdir output - echo ""
- bash make.sh - 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
- ls output - echo ""
- ls output | wc -l - 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
- cd output - echo ""
- bash ../test.sh - mkdir output ; bash make.sh -o no-valgrind ; ls output ; ls output | wc -l ; cd output ; bash ../test.sh ; cd .. ; rm -fr output
- cd .. - echo ""
- rm -fr output - 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
- mkdir output - echo "" ; date
- 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

Loading…
Cancel
Save