Skip to content

Commit

Permalink
prettify git diff output
Browse files Browse the repository at this point in the history
  • Loading branch information
jpbusch committed Feb 16, 2024
1 parent cf8703f commit 4554b55
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .gitlab-ci.codegen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ etsi_its_cam_coding:
-o etsi_its_coding/etsi_its_cam_coding
-td /builds/$CI_PROJECT_PATH/tmp
- rm -rf /builds/$CI_PROJECT_PATH/tmp
- if [[ ! -z "$(git status --porcelain)" ]]; then echo "Code generation script resulted in changes to the repository" && echo $(git diff); exit 1; fi
- if [[ ! -z "$(git status --porcelain)" ]]; then echo "Code generation script resulted in changes to the repository" && git diff; exit 1; fi

etsi_its_denm_coding:
stage: asn1c
Expand All @@ -54,7 +54,7 @@ etsi_its_denm_coding:
-o etsi_its_coding/etsi_its_denm_coding
-td /builds/$CI_PROJECT_PATH/tmp
- rm -rf /builds/$CI_PROJECT_PATH/tmp
- if [[ ! -z "$(git status --porcelain)" ]]; then echo "Code generation script resulted in changes to the repository" && echo $(git diff); exit 1; fi
- if [[ ! -z "$(git status --porcelain)" ]]; then echo "Code generation script resulted in changes to the repository" && git diff; exit 1; fi


etsi_its_cam_msgs:
Expand All @@ -66,7 +66,7 @@ etsi_its_cam_msgs:
asn1/raw/cam_en302637_2/CAM-PDU-Descriptions.asn
asn1/raw/cam_en302637_2/cdd/ITS-Container.asn
-o etsi_its_msgs/etsi_its_cam_msgs/msg
- if [[ ! -z "$(git status --porcelain)" ]]; then echo "Code generation script resulted in changes to the repository"; exit 1; fi
- if [[ ! -z "$(git status --porcelain)" ]]; then echo "Code generation script resulted in changes to the repository" && git diff; exit 1; fi

etsi_its_denm_msgs:
stage: ROS Messages
Expand All @@ -77,7 +77,7 @@ etsi_its_denm_msgs:
asn1/raw/denm_en302637_3/DENM-PDU-Descriptions.asn
asn1/raw/denm_en302637_3/cdd/ITS-Container.asn
-o etsi_its_msgs/etsi_its_denm_msgs/msg
- if [[ ! -z "$(git status --porcelain)" ]]; then echo "Code generation script resulted in changes to the repository"; exit 1; fi
- if [[ ! -z "$(git status --porcelain)" ]]; then echo "Code generation script resulted in changes to the repository" && git diff; exit 1; fi


etsi_its_cam_conversion:
Expand All @@ -90,7 +90,7 @@ etsi_its_cam_conversion:
asn1/raw/cam_en302637_2/cdd/ITS-Container.asn
-t cam
-o etsi_its_conversion/etsi_its_cam_conversion/include/etsi_its_cam_conversion
- if [[ ! -z "$(git status --porcelain)" ]]; then echo "Code generation script resulted in changes to the repository"; exit 1; fi
- if [[ ! -z "$(git status --porcelain)" ]]; then echo "Code generation script resulted in changes to the repository" && git diff; exit 1; fi

etsi_its_denm_conversion:
stage: Conversion Headers
Expand All @@ -102,4 +102,4 @@ etsi_its_denm_conversion:
asn1/raw/denm_en302637_3/cdd/ITS-Container.asn
-t denm
-o etsi_its_conversion/etsi_its_denm_conversion/include/etsi_its_denm_conversion
- if [[ ! -z "$(git status --porcelain)" ]]; then echo "Code generation script resulted in changes to the repository"; exit 1; fi
- if [[ ! -z "$(git status --porcelain)" ]]; then echo "Code generation script resulted in changes to the repository" && git diff; exit 1; fi

0 comments on commit 4554b55

Please sign in to comment.