-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #346 from FlaSpaceInst/staging
Staging -> Master: GitHub Actions and PEP8 changes
- Loading branch information
Showing
62 changed files
with
1,901 additions
and
1,589 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
FROM ros:melodic | ||
|
||
# Copy code repository and script that specifies test procedure | ||
COPY . /ez-rassor | ||
COPY .github/build/entrypoint.sh /entrypoint.sh | ||
|
||
CMD ["/bin/sh", "/entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/sh -l | ||
|
||
cd /ez-rassor | ||
|
||
# Go through the setup commands | ||
sh develop.sh setup | ||
sh develop.sh link | ||
sh develop.sh build | ||
|
||
# Run the test function (uses catkin_make run_tests) | ||
sh develop.sh test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: dev | ||
|
||
on: | ||
push: | ||
branches: | ||
- dev | ||
- staging | ||
pull_request: | ||
branches: | ||
- dev | ||
- staging | ||
|
||
jobs: | ||
|
||
rostest: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
# Builds a docker image with the repository inside. The executable for the container installs all packages and runs rostest. | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Run rostest on repository | ||
run: | | ||
docker build -t ez-rassor_rostest -f .github/build/Dockerfile . | ||
docker run ez-rassor_rostest | ||
flake8: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
# Runs flake8 linter on all Python code. Saves changes as annotations to a PR. | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: TrueBrain/actions-flake8@master | ||
with: | ||
ignore: E501,W503 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,57 @@ | ||
#!/usr/bin/env python | ||
import os | ||
import sys | ||
|
||
|
||
def main(): | ||
|
||
world_ext = "" | ||
choice = "queue_packs/" | ||
|
||
l = os.listdir("./" + choice) | ||
|
||
for i in l: | ||
|
||
print("Processing {}".format(i)) | ||
|
||
folder_name = "" | ||
cool = i.split("_") | ||
num = len(cool) | ||
new_str = "" | ||
for p in range(num - 1): | ||
if p < num - 2: | ||
new_str += cool[p] + "_" | ||
else: | ||
new_str += cool[p] | ||
|
||
world_file = "" | ||
folder_name = new_str | ||
lister = os.listdir("./" + choice + i) | ||
for file in lister: | ||
if ".world" in file: | ||
world_file = file | ||
tester = os.listdir("./" + choice + i + "/" + folder_name | ||
+ "/materials/textures/" | ||
) | ||
cache = "" | ||
for file in tester: | ||
if file != "AS16-110-18026HR-512x512.jpg": | ||
temp = file.split(".") | ||
cache = temp[0] | ||
print("Remove cache for {}".format(cache)) | ||
os.system("rm -rf $HOME/.gazebo/paging/" + cache) | ||
|
||
print("Copying model and world to appropriate folders") | ||
os.system( | ||
"cp -r ./" + choice + i + "/" + folder_name | ||
+ " $HOME/.gazebo/models/" | ||
) | ||
os.system( | ||
"cp ./" + choice + i + "/" + world_file | ||
+ " ../../packages/simulation/ezrassor_sim_gazebo/worlds" | ||
) | ||
|
||
if __name__ == '__main__': | ||
main() | ||
choice = "queue_packs/" | ||
|
||
packs = os.listdir("./" + choice) | ||
|
||
for i in packs: | ||
|
||
print("Processing {}".format(i)) | ||
|
||
folder_name = "" | ||
cool = i.split("_") | ||
num = len(cool) | ||
new_str = "" | ||
for p in range(num - 1): | ||
if p < num - 2: | ||
new_str += cool[p] + "_" | ||
else: | ||
new_str += cool[p] | ||
|
||
world_file = "" | ||
folder_name = new_str | ||
lister = os.listdir("./" + choice + i) | ||
for file in lister: | ||
if ".world" in file: | ||
world_file = file | ||
tester = os.listdir( | ||
"./" + choice + i + "/" + folder_name + "/materials/textures/" | ||
) | ||
cache = "" | ||
for file in tester: | ||
if file != "AS16-110-18026HR-512x512.jpg": | ||
temp = file.split(".") | ||
cache = temp[0] | ||
print("Remove cache for {}".format(cache)) | ||
os.system("rm -rf $HOME/.gazebo/paging/" + cache) | ||
|
||
print("Copying model and world to appropriate folders") | ||
os.system( | ||
"cp -r ./" + choice + i + "/" + folder_name + " $HOME/.gazebo/models/" | ||
) | ||
os.system( | ||
"cp ./" | ||
+ choice | ||
+ i | ||
+ "/" | ||
+ world_file | ||
+ " ../../packages/simulation/ezrassor_sim_gazebo/worlds" | ||
) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
Oops, something went wrong.