Don't install nginx twice on OSX Travis build.

This commit is contained in:
Cesar Blum Silveira 2016-06-06 20:18:10 -07:00
parent 2578110c23
commit a2a084fd16
2 changed files with 7 additions and 6 deletions

View File

@ -6,14 +6,9 @@ addons:
packages:
- libunwind8
before_install:
- if test "$TRAVIS_OS_NAME" == "osx"; then brew update; brew install nginx; brew install openssl; brew link --force openssl; fi
- if test "$TRAVIS_OS_NAME" == "osx"; then brew update; brew install nginx; brew install openssl; brew link --force openssl; else ./install-nginx.sh; fi
install:
- curl -sSL http://nginx.org/download/nginx-1.8.0.tar.gz | tar zxfv - -C /tmp && cd /tmp/nginx-1.8.0/
- ./configure --prefix=$HOME/nginxinstall --with-http_ssl_module
- make
- make install
- export PATH="$PATH:$HOME/nginxinstall/sbin/"
- cd $OLDPWD
mono:
- 4.0.5
os:

6
install-nginx.sh Executable file
View File

@ -0,0 +1,6 @@
#!/usr/bin/env bash
curl -sSL http://nginx.org/download/nginx-1.8.0.tar.gz | tar zxfv - -C /tmp && cd /tmp/nginx-1.8.0/
./configure --prefix=$HOME/nginxinstall --with-http_ssl_module
make
make install