-
Notifications
You must be signed in to change notification settings - Fork 7
/
azure-pipelines.yml
55 lines (42 loc) · 1.28 KB
/
azure-pipelines.yml
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
47
48
49
50
51
52
53
54
55
trigger:
- master
pr:
- master
jobs:
- job:
displayName: Run Linting and Tests
pool:
vmImage: 'ubuntu-16.04'
variables:
azure_tmpdir: $(Agent.TempDirectory)
devtools: $(azure_tmpdir)/devtools
CatkinProjectDir: /catkin_ws/src/$(Build.Repository.Name)
container: prlmushr/mushr:bionic
steps:
- script: git clone https://github.com/prl-mushr/devtools.git $(devtools)
displayName: Get devtools
- bash: /ros_entrypoint.sh $(devtools)/bin/mushr_lint_flake8 .
displayName: flake8
condition: succeededOrFailed()
- bash: /ros_entrypoint.sh $(devtools)/bin/mushr_lint_isort . --check
displayName: isort
condition: succeededOrFailed()
- bash: /ros_entrypoint.sh $(devtools)/bin/mushr_lint_black . --check
displayName: black
condition: succeededOrFailed()
- bash: |
source /opt/ros/melodic/setup.bash
sudo chown -R $(whoami) /catkin_ws
# since we are testing sim, we want to use our version
rm -rf /catkin_ws/src/mushr_base
mkdir -p $(CatkinProjectDir)
cp -r * $(CatkinProjectDir)
cd /catkin_ws
# build and source setup files
catkin_make
source devel/setup.bash
# test
cd $(CatkinProjectDir)
./test.sh
displayName: Run tests
condition: succeededOrFailed()