Skip to content

Commit 670e128

Browse files
committed
Merge pull request #136 from wkentaro/furushchev-support-osx
Support OS X on Travis
2 parents 0be187a + f98b1d6 commit 670e128

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.travis.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# Travis Continuous Integration Configuration File
2+
os:
3+
- linux
4+
- osx
25
language:
36
- cpp
47
compiler:
@@ -18,8 +21,9 @@ before_install: # Use this to prepare the system to install prerequisites or dep
1821
- export CI_SOURCE_PATH=$(pwd)
1922
- export REPOSITORY_NAME=${PWD##*/}
2023
- echo "Testing branch $TRAVIS_BRANCH of $REPOSITORY_NAME"
21-
- sudo apt-get update -qq
22-
- sudo apt-get install -qq -y subversion gcc g++ libjpeg-dev libxext-dev libx11-dev libgl1-mesa-dev libglu1-mesa-dev libpq-dev libpng12-dev xfonts-100dpi xfonts-75dpi msttcorefonts texlive-latex-base ptex-bin latex2html nkf
24+
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get update -qq; fi
25+
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install -qq -y subversion gcc g++ libjpeg-dev libxext-dev libx11-dev libgl1-mesa-dev libglu1-mesa-dev libpq-dev libpng12-dev xfonts-100dpi xfonts-75dpi msttcorefonts texlive-latex-base ptex-bin latex2html nkf; fi
26+
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install jpeg libpng mesalib-glw wget; fi
2327
install: # Use this to install any prerequisites or dependencies necessary to run your build
2428
- cd ${HOME}
2529
- git clone http://github.com/euslisp/jskeus jskeus
@@ -29,7 +33,7 @@ script: # All commands must exit with code 0 on success. Anything else is consid
2933
- make
3034
- source bashrc.eus
3135
- export EXIT_STATUS=0; for test_l in irteus/test/*.l; do irteusgl $test_l; export EXIT_STATUS=$?; done; [ $EXIT_STATUS == 0 ]
32-
- (cd doc; make)
36+
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then (cd doc; make) fi
3337
after_failure:
3438
- echo "failure"
3539
after_success:

0 commit comments

Comments
 (0)