Skip to content

Commit

Permalink
Add Ubuntu leg
Browse files Browse the repository at this point in the history
Add build.sh

chmod +x
  • Loading branch information
Evangelink committed Nov 27, 2023
1 parent 74cb714 commit cae17b8
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 1 deletion.
32 changes: 31 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ stages:
enableTelemetry: true
jobs:
- job: Windows
timeoutInMinutes: 120
timeoutInMinutes: 90
pool:
${{ if eq(variables._RunAsPublic, True) }}:
name: NetCore-Public
Expand Down Expand Up @@ -160,6 +160,36 @@ stages:
packagesToPush: 'artifacts/packages/$(_BuildConfig)/**/*.nupkg;!artifacts/packages/$(_BuildConfig)/**/*.symbols.nupkg'
publishVstsFeed: 'public/test-tools'

- job: Linux
timeoutInMinutes: 90
pool:
${{ if eq(variables._RunAsPublic, True) }}:
name: NetCore-Public
demands: ImageOverride -equals build.ubuntu.1804.amd64.open
${{ if eq(variables._RunAsInternal, True) }}:
name: NetCore1ESPool-Internal
demands: ImageOverride -equals build.ubuntu.1804.amd64
strategy:
matrix:
Release:
_BuildConfig: Release
${{ if eq(variables._RunAsPublic, True) }}:
Debug:
_BuildConfig: Debug
steps:
- script: eng/common/cibuild.sh
-configuration $(_BuildConfig)
-prepareMachine
/p:Test=false
displayName: Build

# -ci is allowing to import some environment variables and some required configurations
- script: |
chmod +x ./test.sh
./test.sh --configuration $(_BuildConfig) --ci --test --integrationTest
name: Test
displayName: Tests
- ${{ if eq(variables._RunAsInternal, True) }}:
- template: /eng/common/templates/job/onelocbuild.yml
parameters:
Expand Down
16 changes: 16 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env bash

source="${BASH_SOURCE[0]}"

# resolve $SOURCE until the file is no longer a symlink
while [[ -h $source ]]; do
scriptroot="$( cd -P "$( dirname "$source" )" && pwd )"
source="$(readlink "$source")"

# if $source was a relative symlink, we need to resolve it relative to the path where the
# symlink file was located
[[ $source != /* ]] && source="$scriptroot/$source"
done

scriptroot="$( cd -P "$( dirname "$source" )" && pwd )"
"$scriptroot/eng/common/build.sh" --build --restore $@
Empty file modified eng/common/build.sh
100644 → 100755
Empty file.

0 comments on commit cae17b8

Please sign in to comment.