Skip to content

Commit 09b40f3

Browse files
committed
add MacOS built scripts support in .travis.yml
1 parent 34425a4 commit 09b40f3

File tree

1 file changed

+14
-44
lines changed

1 file changed

+14
-44
lines changed

.travis.yml

+14-44
Original file line numberDiff line numberDiff line change
@@ -11,51 +11,21 @@ compiler:
1111
- gcc
1212
- clang
1313

14-
install:
15-
- 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
16-
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
17-
- sudo apt-get update
18-
- sudo apt-key update
19-
2014
script:
2115
- echo $TRAVIS_EVENT_TYPE
22-
- ulimit -c unlimited
23-
- cat /proc/cpuinfo && free -m && uname -a
24-
- cc --version
25-
- gcc --version
16+
- echo $TRAVIS_OS_NAME
2617
- echo $CC
27-
- ls /usr/include
28-
- ls /usr/include/valgrind
18+
- cc --version
19+
- if [ "$TRAVIS_OS_NAME" = "osx" ] ; then brew update; brew install grep --with-default-names; fi
20+
- if [ "$TRAVIS_OS_NAME" = "osx" ] ; then brew install gnu-sed --with-default-names; fi
21+
- 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
2922
- date
30-
- mkdir output
31-
- bash make.sh
32-
- ls output
33-
- ls output | wc -l
34-
- cd output
35-
- bash ../test.sh
36-
- cd ..
37-
- rm -fr output
38-
- mkdir output
39-
- bash make.sh -o no-m32
40-
- ls output
41-
- ls output | wc -l
42-
- cd output
43-
- bash ../test.sh
44-
- cd ..
45-
- rm -fr output
46-
- mkdir output
47-
- bash make.sh -o no-valgrind
48-
- ls output
49-
- ls output | wc -l
50-
- cd output
51-
- bash ../test.sh
52-
- cd ..
53-
- rm -fr output
54-
- mkdir output
55-
- bash make.sh -o no-valgrind -o no-m32
56-
- ls output
57-
- ls output | wc -l
58-
- cd output
59-
- bash ../test.sh
60-
- cd ..
61-
- rm -fr output
23+
- echo ""
24+
- 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
25+
- echo ""
26+
- 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
27+
- echo ""
28+
- mkdir output ; bash make.sh -o no-valgrind ; ls output ; ls output | wc -l ; cd output ; bash ../test.sh ; cd .. ; rm -fr output
29+
- echo ""
30+
- 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
31+
- echo "" ; date

0 commit comments

Comments
 (0)