Skip to content

Commit

Permalink
Select Node 10 during Azure Pipelines run
Browse files Browse the repository at this point in the history
  • Loading branch information
pmaene committed Nov 20, 2019
1 parent 75f40f4 commit fc47baa
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 8 deletions.
3 changes: 1 addition & 2 deletions .azure-pipelines/00-install-less.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ parameters:

steps:
- script: |
sudo npm install -g less@${{ parameters.lessVersion }}
lessc --version
npm install less@${{ parameters.lessVersion }}
displayName: 'Install Less ${{ parameters.lessVersion }}'
8 changes: 8 additions & 0 deletions .azure-pipelines/00-install-node.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
parameters:
nodeVersion: ''

steps:
- task: NodeTool@0
inputs:
versionSpec: '${{ parameters.nodeVersion }}.x'
displayName: 'Install Node ${{ parameters.nodeVersion }}'
17 changes: 11 additions & 6 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
variables:
lessVersion: 1.7.5
nodeVersion: 10
pgsqlVersion: 11
phpVersion: 7.3

Expand Down Expand Up @@ -43,20 +44,24 @@ jobs:
pool:
vmImage: ubuntu-latest
steps:
- template: .azure-pipelines/00-install-less.yml
- template: .azure-pipelines/00-install-node.yml
parameters:
lessVersion: $(lessVersion)

- template: .azure-pipelines/00-install-php-modules.yml
parameters:
phpVersion: $(phpVersion)
nodeVersion: $(nodeVersion)

- template: .azure-pipelines/00-install-postgresql.yml
parameters:
pgsqlVersion: $(pgsqlVersion)

- template: .azure-pipelines/00-install-redis.yml

- template: .azure-pipelines/00-install-less.yml
parameters:
lessVersion: $(lessVersion)

- template: .azure-pipelines/00-install-php-modules.yml
parameters:
phpVersion: $(phpVersion)

- template: .azure-pipelines/10-configure-php.yml
parameters:
phpVersion: $(phpVersion)
Expand Down

0 comments on commit fc47baa

Please sign in to comment.