aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2018-10-11 23:02:34 +0200
committerJay Berkenbilt <ejb@ql.org>2018-10-11 23:27:54 +0200
commit4cd1a8f0db22d616db12aadf9424b0d1c624c69c (patch)
tree5a3e8261ad49a058b326390d97b3bbac5e423869
parentaa864d214249bc16b93a56dbdc1cac91fa276a46 (diff)
downloadqpdf-4cd1a8f0db22d616db12aadf9424b0d1c624c69c.tar.zst
Azure pipelines: no artifact upload/download from forks
-rw-r--r--azure-pipelines.yml4
-rwxr-xr-xazure-pipelines/build-mac4
-rwxr-xr-xazure-pipelines/build-windows4
3 files changed, 10 insertions, 2 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index c5d8d5ba..16a79fb6 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -10,6 +10,7 @@ jobs:
pathtoPublish: '$(System.DefaultWorkingDirectory)/distfiles.zip'
artifactName: distfiles
displayName: 'Upload extra distribution files'
+ condition: eq(variables['System.PullRequest.IsFork'], 'False')
- job: Windows
pool:
vmImage: vs2017-win2016
@@ -38,6 +39,7 @@ jobs:
inputs:
artifactName: distfiles
downloadPath: $(System.DefaultWorkingDirectory)
+ condition: eq(variables['System.PullRequest.IsFork'], 'False')
- script: azure-pipelines/build-windows.bat $(wordsize) $(tool)
displayName: 'Build, test, generate binary distributions'
- task: PublishBuildArtifacts@1
@@ -45,6 +47,7 @@ jobs:
pathtoPublish: '$(System.DefaultWorkingDirectory)/installers'
artifactName: installers
displayName: 'Upload binary distributions'
+ condition: eq(variables['System.PullRequest.IsFork'], 'False')
dependsOn: Linux
condition: succeeded()
- job: macOS
@@ -56,6 +59,7 @@ jobs:
inputs:
artifactName: distfiles
downloadPath: $(System.DefaultWorkingDirectory)
+ condition: eq(variables['System.PullRequest.IsFork'], 'False')
- script: azure-pipelines/build-mac
displayName: 'Mac build and test'
dependsOn: Linux
diff --git a/azure-pipelines/build-mac b/azure-pipelines/build-mac
index 95ea884b..4dbe15e5 100755
--- a/azure-pipelines/build-mac
+++ b/azure-pipelines/build-mac
@@ -7,7 +7,9 @@ cd jpeg-9c
make
sudo make install
cd ..
-unzip distfiles/distfiles.zip
+if [ -f distfiles/distfiles.zip ]; then
+ unzip distfiles/distfiles.zip
+fi
./configure --enable-werror --enable-show-failed-test-output
make -j$(nproc)
make -k check
diff --git a/azure-pipelines/build-windows b/azure-pipelines/build-windows
index 834c884f..85fbceb2 100755
--- a/azure-pipelines/build-windows
+++ b/azure-pipelines/build-windows
@@ -17,7 +17,9 @@ if [[ $tool == mingw ]]; then
elif [[ $tool == msvc ]]; then
cl
fi
-unzip distfiles/distfiles.zip
+if [ -f distfiles/distfiles.zip ]; then
+ unzip distfiles/distfiles.zip
+fi
curl -L https://downloads.sourceforge.net/project/qpdf/external-libs/2017-08-21/qpdf-external-libs-bin.zip -o qpdf-external-libs-bin.zip
unzip qpdf-external-libs-bin.zip
cwd=`pwd`