mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
* Attempt to build testbench tests online inorder to improve speed * Fix contianer reference * Start to remove jenkins shell script * Change job names * Remove sshpass * Remove teststand code * Copy test results back * Fix build by using athena container * Fail if any command fails * Remove jenkins test script * Remove name argument * Fix param count * Add build display name * Fix scp to copy into dir * Update display names * Update stage name * Fix test results scp * Create local test report dir * Remove commented out old code * Remove force pseudo-terminal allocation * Remove extra variables * Update readme * Remove old test runs * Update license header
92 lines
2.4 KiB
YAML
92 lines
2.4 KiB
YAML
# Testing steps for real hardware
|
|
|
|
trigger:
|
|
batch: true
|
|
branches:
|
|
include:
|
|
- master
|
|
|
|
stages:
|
|
- stage: Build
|
|
jobs:
|
|
- job: IntegrationTests
|
|
displayName: Integration Tests
|
|
pool:
|
|
vmImage: 'Ubuntu 16.04'
|
|
|
|
container:
|
|
image: wpilib/roborio-cross-ubuntu:2020-18.04
|
|
|
|
timeoutInMinutes: 0
|
|
|
|
steps:
|
|
- task: Gradle@2
|
|
condition: and(succeeded(), not(startsWith(variables['Build.SourceBranch'], 'refs/tags/v')))
|
|
inputs:
|
|
workingDirectory: ''
|
|
gradleWrapperFile: 'gradlew'
|
|
gradleOptions: '-Xmx3072m'
|
|
publishJUnitResults: false
|
|
testResultsFiles: '**/TEST-*.xml'
|
|
tasks: 'copyWpilibJIntegrationTestJarToOutput copyWpilibCTestLibrariesToOutput'
|
|
options: '-Ponlylinuxathena -PbuildServer'
|
|
|
|
- task: PublishPipelineArtifact@0
|
|
inputs:
|
|
artifactName: 'Integration Tests'
|
|
targetPath: 'build/integrationTestFiles'
|
|
|
|
- stage: TestBench
|
|
displayName: Test Bench
|
|
jobs:
|
|
- job: Cpp
|
|
displayName: C++
|
|
pool: RoboRioConnections
|
|
timeoutInMinutes: 30
|
|
workspace:
|
|
clean: all
|
|
steps:
|
|
- task: DownloadPipelineArtifact@0
|
|
inputs:
|
|
artifactName: 'Integration Tests'
|
|
targetPath: 'build/integrationTestFiles'
|
|
|
|
- task: ShellScript@2
|
|
displayName: Run C++ Tests
|
|
inputs:
|
|
scriptPath: test-scripts/deploy-and-run-test-on-robot.sh
|
|
args: 'cpp -A "--gtest_output=xml:/home/admin/testResults/cppreport.xml"'
|
|
|
|
- task: PublishTestResults@2
|
|
displayName: Publish C++ Test Results
|
|
inputs:
|
|
testResultsFormat: 'JUnit'
|
|
testResultsFiles: '*.xml'
|
|
testRunTitle: 'C++ Test Report'
|
|
searchFolder: '$(System.DefaultWorkingDirectory)/test-reports'
|
|
|
|
- job: Java
|
|
pool: RoboRioConnections
|
|
timeoutInMinutes: 30
|
|
workspace:
|
|
clean: all
|
|
steps:
|
|
- task: DownloadPipelineArtifact@0
|
|
inputs:
|
|
artifactName: 'Integration Tests'
|
|
targetPath: 'build/integrationTestFiles'
|
|
|
|
- task: ShellScript@2
|
|
displayName: Run Java Tests
|
|
inputs:
|
|
scriptPath: test-scripts/deploy-and-run-test-on-robot.sh
|
|
args: 'java'
|
|
|
|
- task: PublishTestResults@2
|
|
displayName: Publish Java Test Results
|
|
inputs:
|
|
testResultsFormat: 'JUnit'
|
|
testResultsFiles: '*.xml'
|
|
testRunTitle: 'Java Test Report'
|
|
searchFolder: '$(System.DefaultWorkingDirectory)/test-reports'
|