This repository has been archived by the owner on Jan 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
73 lines (62 loc) · 2.02 KB
/
config.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# CircleCi Configuration for local-pathfinding
version: 2.1
######### High-level workflow #########
workflows:
version: 2.1
build-lint-test:
jobs:
- build
- lint:
requires:
- build
- test:
requires:
- build
######### Mid-level jobs #########
jobs:
build:
executor: docker_exec
steps:
- install_circleci_dependencies
- setup_and_build_workspace
lint:
executor: docker_exec
steps:
- install_circleci_dependencies
- setup_and_build_workspace
- install_and_run_flake8
test:
executor: docker_exec
steps:
- install_circleci_dependencies
- setup_and_build_workspace
- run_tests
######### Low-level commands and executors #########
commands:
install_circleci_dependencies:
description: "Install CircleCI Dependencies"
steps:
- run: apt-get update && apt-get install -y git ssh tar gzip ca-certificates
setup_and_build_workspace:
description: "Set Up And Build Workspace"
steps:
- run: mkdir -p /catkin_ws/src/local-pathfinding
- run: mkdir -p /catkin_ws/src/sailbot-msg
- run: source /opt/ros/melodic/setup.bash && cd /catkin_ws && catkin_make
- checkout:
path: /catkin_ws/src/local-pathfinding
- run: git clone https://github.com/UBCSailbot/sailbot-msg.git /catkin_ws/src/sailbot-msg
- run: source /opt/ros/melodic/setup.bash && cd /catkin_ws && catkin_make
install_and_run_flake8:
description: "Install And Run Flake8"
steps:
- run: pip install flake8 && flake8 --statistics --max-line-length 120 /catkin_ws/src/local-pathfinding
run_tests:
description: "Run Tests"
steps:
- run: pip install shapely # temporary patch for a new dependency not in the CircleCI image
- run: source /opt/ros/melodic/setup.bash && source /catkin_ws/devel/setup.bash && cd /catkin_ws && catkin_make run_tests && catkin_test_results
executors:
docker_exec:
docker:
- image: tylerlum/ros_ompl_python_2:11.2020.V2