File tree Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,10 @@ $(BUILD_DIR)/etc/systemd:
79
79
@cp -r etc/systemd/ $@
80
80
81
81
$(BUILD_DIR ) /etc/gisnav : $(BUILD_DIR ) /etc/gisnav/ros $(BUILD_DIR ) /etc/gisnav/docker $(BUILD_DIR ) /etc/gisnav/docs
82
+ @dest=debian/gisnav/$@ && \
83
+ mkdir -p $@ && \
84
+ touch $(BUILD_DIR ) /COLCON_IGNORE && \
85
+ cd ${REPO_ROOT_PATH} ; rsync -av --exclude-from=' .gitignore' Makefile .pre-commit-config.yaml LICENSE.md README.md pyproject.toml $$ dest
82
86
83
87
$(BUILD_DIR ) /etc/gisnav/ros :
84
88
@dest=debian/gisnav/$@ && \
Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ COPY ros/gisnav/package.xml gisnav/ros/gisnav/package.xml
77
77
# the setup.py python dependencies later.
78
78
RUN cd gisnav/ros/gisnav && \
79
79
rosdep update && \
80
+ apt-get update && \
80
81
rosdep install --from-paths . -y -r --ignore-src && \
81
82
rm -rf /var/lib/apt/lists/* && \
82
83
apt clean
@@ -126,4 +127,9 @@ RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | b
126
127
&& cd docs/vitepress \
127
128
&& npm install
128
129
130
+ COPY Makefile .pre-commit-config.yaml LICENSE.md README.md pyproject.toml /opt/colcon_ws/src/gisnav/
131
+
132
+ # .git needed to make pre-commit work -> initialize a blank repo
133
+ RUN git init
134
+
129
135
ENTRYPOINT ["/entrypoint.sh" ]
Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ test-launch:
17
17
test-unit :
18
18
@python3 -m unittest discover -s $(MAKEFILE_DIR ) test/unit -p " test_*.py"
19
19
20
+ # TODO: move test-static to same directory as .pre-commit-config.yaml
20
21
.PHONY : test-static
21
22
test-static :
22
- @pre-commit run --all-files --config $(MAKEFILE_DIR ) .pre-commit-config.yaml
23
+ @pre-commit run --all-files --config $(MAKEFILE_DIR ) /../../ .pre-commit-config.yaml
23
24
# test end
You can’t perform that action at this time.
0 commit comments