Skip to content

Commit 1f05d28

Browse files
committed
Dynamically install NGinx Internal/#1525
1 parent a923c72 commit 1f05d28

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

.azure/pipelines/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,18 @@ jobs:
2424
jobDisplayName: "Build and test: macOS"
2525
agentOs: macOs
2626
buildScript: ./eng/scripts/cibuild.sh
27+
beforeBuild:
28+
- bash: "./eng/scripts/install-nginx-mac.sh"
29+
displayName: Installing Nginx
2730
- template: jobs/default-build.yml
2831
parameters:
2932
jobName: Linux_Build
3033
jobDisplayName: "Build and test: Linux"
3134
agentOs: Linux
3235
buildScript: ./eng/scripts/cibuild.sh
36+
beforeBuild:
37+
- bash: "./eng/scripts/install-nginx-linux.sh"
38+
displayName: Installing Nginx
3339
- template: jobs/iisintegration-job.yml
3440
parameters:
3541
TestGroupName: IIS

eng/scripts/install-nginx-linux.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
3+
curl -sSL http://nginx.org/download/nginx-1.8.0.tar.gz | tar zxfv - -C /tmp && cd /tmp/nginx-1.8.0/
4+
./configure --prefix=$HOME/nginxinstall --with-http_ssl_module
5+
make
6+
make install
7+
export PATH="$PATH:$HOME/nginxinstall/sbin/"

eng/scripts/install-nginx-mac.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
3+
brew update
4+
brew install openssl nginx
5+
ln -s /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib/
6+
ln -s /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/
7+
export PATH="$PATH:$HOME/nginxinstall/sbin/"

0 commit comments

Comments
 (0)