Skip to content

Commit a3d7f65

Browse files
committed
Dynamically install NGinx Internal/#1525
1 parent d73d6e8 commit a3d7f65

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
@@ -21,11 +21,17 @@ jobs:
2121
jobName: MacOs_Build
2222
jobDisplayName: "Build and test: macOS"
2323
agentOs: macOs
24+
beforeBuild:
25+
- bash: "./eng/scripts/install-nginx-mac.sh"
26+
displayName: Installing Nginx
2427
- template: jobs/default-build.yml
2528
parameters:
2629
jobName: Linux_Build
2730
jobDisplayName: "Build and test: Linux"
2831
agentOs: Linux
32+
beforeBuild:
33+
- bash: "./eng/scripts/install-nginx-linux.sh"
34+
displayName: Installing Nginx
2935
# - template: jobs/iisintegration-job.yml
3036
# parameters:
3137
# 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)