Skip to content

Commit

Permalink
Showing 1 changed file with 49 additions and 48 deletions.
97 changes: 49 additions & 48 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,49 @@
trigger:
- master

jobs:
- job: Build
timeoutInMinutes: 180

pool:
vmImage: 'ubuntu-latest'

variables:
release: 'v19.07.3'
workingDirectory: '$(Build.SourcesDirectory)/openwrt'

steps:
- script: sudo apt-get -q -y install libncurses5-dev
displayName: 'Install dependencies'

- script: |
umask 0022
git clone https://git.openwrt.org/openwrt/openwrt.git
displayName: 'Clone OpenWrt git repo'
- script: |
cp .config openwrt/
displayName: 'Copy .config file'
- script: git checkout $(release)
workingDirectory: $(workingDirectory)
displayName: 'Checkout $(release)'

- script: |
./scripts/feeds update -a
./scripts/feeds install -a
workingDirectory: $(workingDirectory)
displayName: 'Update package feeds'
- script: make
workingDirectory: $(workingDirectory)
displayName: 'Build the project'

- task: CopyFiles@2
inputs:
contents: $(workingDirectory)/bin/targets/x86/64/**
targetFolder: $(Build.ArtifactStagingDirectory)

- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: drop'
trigger:
- master

jobs:
- job: Build
timeoutInMinutes: 180

pool:
vmImage: 'ubuntu-latest'

variables:
release: 'v19.07.3'
workingDirectory: '$(Build.SourcesDirectory)/openwrt'

steps:
- script: sudo apt-get -q -y install libncurses5-dev
displayName: 'Install dependencies'

- script: |
umask 0022
git clone https://git.openwrt.org/openwrt/openwrt.git
displayName: 'Clone OpenWrt git repo'
- script: |
cp .config openwrt/
displayName: 'Copy .config file'
- script: git checkout $(release)
workingDirectory: $(workingDirectory)
displayName: 'Checkout $(release)'

- script: |
./scripts/feeds update -a
./scripts/feeds install -a
workingDirectory: $(workingDirectory)
displayName: 'Update package feeds'
- script: make
workingDirectory: $(workingDirectory)
displayName: 'Build the project'

- task: CopyFiles@2
inputs:
sourceFolder: $(workingDirectory)/bin/targets/x86/64
contents: '*'
targetFolder: $(Build.ArtifactStagingDirectory)

- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: drop'

0 comments on commit e3506dc

Please sign in to comment.