mirror of
https://github.com/atom/atom.git
synced 2026-01-15 01:48:15 -05:00
77 lines
2.4 KiB
YAML
77 lines
2.4 KiB
YAML
jobs:
|
|
- job: Linux
|
|
dependsOn: GetReleaseVersion
|
|
timeoutInMinutes: 180
|
|
|
|
variables:
|
|
ReleaseVersion: $[ dependencies.GetReleaseVersion.outputs['Version.ReleaseVersion'] ]
|
|
pool:
|
|
# This image is used to host the Docker container that runs the build
|
|
vmImage: ubuntu-16.04
|
|
|
|
container: atom-linux-ci
|
|
|
|
steps:
|
|
- script: script/bootstrap
|
|
displayName: Bootstrap build environment
|
|
env:
|
|
CI: true
|
|
CI_PROVIDER: VSTS
|
|
|
|
- script: script/lint
|
|
displayName: Run linter
|
|
|
|
- script: script/build --no-bootstrap --create-debian-package --create-rpm-package --compress-artifacts
|
|
env:
|
|
GITHUB_TOKEN: $(GITHUB_TOKEN)
|
|
ATOM_RELEASE_VERSION: $(ReleaseVersion)
|
|
displayName: Build Atom
|
|
|
|
- script: script/test
|
|
env:
|
|
CI: true
|
|
CI_PROVIDER: VSTS
|
|
ATOM_JASMINE_REPORTER: list
|
|
TEST_JUNIT_XML_ROOT: $(Common.TestResultsDirectory)/junit
|
|
displayName: Run tests
|
|
condition: and(succeeded(), ne(variables['Atom.SkipTests'], 'true'))
|
|
|
|
- script: script/postprocess-junit-results --search-folder "${TEST_JUNIT_XML_ROOT}" --test-results-files "**/*.xml"
|
|
env:
|
|
TEST_JUNIT_XML_ROOT: $(Common.TestResultsDirectory)/junit
|
|
displayName: Post-process test results
|
|
condition: ne(variables['Atom.SkipTests'], 'true')
|
|
|
|
- task: PublishTestResults@2
|
|
inputs:
|
|
testResultsFormat: JUnit
|
|
searchFolder: $(Common.TestResultsDirectory)/junit
|
|
testResultsFiles: "**/*.xml"
|
|
mergeTestResults: true
|
|
testRunTitle: Linux
|
|
condition: ne(variables['Atom.SkipTests'], 'true')
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
inputs:
|
|
PathtoPublish: $(Build.SourcesDirectory)/out/atom.x86_64.rpm
|
|
ArtifactName: atom.x86_64.rpm
|
|
ArtifactType: Container
|
|
displayName: Upload atom.x84_64.rpm
|
|
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
inputs:
|
|
PathtoPublish: $(Build.SourcesDirectory)/out/atom-amd64.deb
|
|
ArtifactName: atom-amd64.deb
|
|
ArtifactType: Container
|
|
displayName: Upload atom-amd64.deb
|
|
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
inputs:
|
|
PathtoPublish: $(Build.SourcesDirectory)/out/atom-amd64.tar.gz
|
|
ArtifactName: atom-amd64.tar.gz
|
|
ArtifactType: Container
|
|
displayName: Upload atom-amd64.tar.gz
|
|
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
|