-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
46 lines (38 loc) · 1.79 KB
/
Copy pathazure-pipelines.yml
File metadata and controls
46 lines (38 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# The main pipeline for UBC Sailbot projects
pool:
vmImage: 'Ubuntu 18.04'
steps:
- script: |
sudo ./install_deps/install_deps_linux.sh
displayName: 'Install deps'
# Install an SSH key prior to a build or deployment
- task: InstallSSHKey@0
inputs:
knownHostsEntry: 'github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ=='
sshPublicKey: 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQD6XJLGc4xNzKNAChRfB0/6S98wA+WCHEFnIVkO0xY+KZx/3XYSMwepD3boRj4+eqYZuYwrUaS3ky4R04PdMMDoA/SHUtAM1uzQ9x+IWjtdoQPpzT8qQ3okZh3htJWw4kEl7s7pMmu7Dd8fkW2QU7inOS3lcokffIMRj3voloou2Nx95exz0RLRxv/dCq+UUavIWchsnDufDYRrUzyJexp3y4132mofd98z/zs8ITtr7PVsTevKRU0jHKakc9xeaIWCnAJ/bcQ6j9tO8TreC+m6UcR6NIy5tXQkUgOD7UDe74H+ofGn/8HGjlcEmHpdulNdPwYQECmY3+12H09cN10t tylerlum@tylerlum-XPS-15-7590' # Public key can be found on github deploy keys
#sshPassphrase: # Optional
sshKeySecureFile: 'sailbotKey' # Private key can be found on azure secure files
- task: CMake@1
displayName: 'Generate Build Files'
inputs:
workingDirectory: build
cmakeArgs: '../'
- script: |
./scripts/run_cpplint.sh
displayName: 'CPPLint'
- script: |
./scripts/run_cppcheck.sh
displayName: 'CPPCheck'
- script: |
cd build
make all -j 4
displayName: 'make'
- script: |
cd build
bin/run_basic_tests --gtest_output=xml
displayName: 'Run tests'
# Publish Test Results to Azure Pipelines/TFS
- task: PublishTestResults@2
inputs:
testResultsFormat: 'JUnit'
testResultsFiles: '**/*.xml'