Skip to content

Commit a513b73

Browse files
committedMay 26, 2020
Uncomment conditionals that were commented out to validate build
1 parent f9e4f77 commit a513b73

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎azure-pipelines.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
displayName: 'Test'
2121
- script: ./helpers/update-site.sh
2222
displayName: 'Deploy'
23-
# condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
23+
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
2424
env:
2525
GIT_USER_EMAIL: $(GIT_USER_EMAIL)
2626
GIT_USER_NAME: $(GIT_USER_NAME)
@@ -30,10 +30,10 @@ jobs:
3030
BRANCH: variables['Build.SourceBranch']
3131
- script: npm run test-staging && node helpers/integration-tests/index.js
3232
displayName: 'Analyze staging with webhint'
33-
# condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
33+
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
3434
- task: AzureAppServiceManage@0
3535
displayName: 'Swap into production'
36-
#condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
36+
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
3737
inputs:
3838
azureSubscription: 'webhint-web'
3939
Action: 'Swap Slots'
@@ -44,7 +44,7 @@ jobs:
4444
curl https://www.google.com/ping?sitemap=https://webhint.io/sitemap.xml
4545
curl https://www.bing.com/ping?sitemap=https://webhint.io/sitemap.xml
4646
displayName: 'Update sitemaps'
47-
# condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
47+
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
4848
4949
- job: 'Algolia'
5050
pool:

0 commit comments

Comments
 (0)