-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e54a661
commit 9480366
Showing
1 changed file
with
45 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,48 @@ | ||
trigger: | ||
- master | ||
jobs: | ||
job: Build | ||
timeoutInMinutes: 0 | ||
|
||
pool: | ||
vmImage: 'ubuntu-latest' | ||
trigger: | ||
- master | ||
|
||
variables: | ||
release: 'v19.07.3' | ||
workingDirectory: '$(Build.SourcesDirectory)/openwrt' | ||
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' | ||
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' |