Juraj Ďuďák 2 years ago
parent
commit
56061ac90c
3 changed files with 71 additions and 0 deletions
  1. 41 0
      .gitlab-ci.yml
  2. 22 0
      LICENSE
  3. 8 0
      apollo.json

+ 41 - 0
.gitlab-ci.yml

@@ -0,0 +1,41 @@
+before_script:
+        # Setup SSH deploy keys
+        - 'which ssh-agent || ( apt-get install -qq openssh-client )'
+        - eval $(ssh-agent -s)
+        - mkdir -p ~/.ssh
+        - chmod 600 ~/.ssh
+        - echo "$SSH_KEY" | tr -d '\r' > ~/.ssh/id_rsa
+        - chmod 600 ~/.ssh/id_rsa
+        - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
+        #rsync
+        #- apt-get update -qq && apt-get install -y --yes  --allow-unauthenticated -qq rsync
+stages: 
+    - build_release
+#    - doxy_stage
+
+build_release:
+    stage: build_release
+    image: python
+    only:
+        - main
+    script:
+        - ssh -t -t -p 90 $DEST_IP mkdir -p $DEST_PATH/$CI_PROJECT_NAME
+        - scp -r -P 90 ./readme.md $DEST_IP:$DEST_PATH/$CI_PROJECT_NAME/readme.md
+        
+        #files for apollo
+        - (if [ -f apollo.json ]; then scp -r -P 90 ./apollo.json $DEST_IP:$DEST_PATH/$CI_PROJECT_NAME/ ; fi);
+        - (if [ -f changelog.md ]; then scp -r -P 90 ./changelog.md $DEST_IP:$DEST_PATH/$CI_PROJECT_NAME/ ; fi);
+        - (if [ -f LICENSE ]; then scp -r -P 90 ./LICENSE $DEST_IP:$DEST_PATH/$CI_PROJECT_NAME/ ; fi);
+
+#doxy_stage:
+#    stage: doxy_stage
+#    image: hrektts/doxygen
+#    only:
+#        - master
+#    script:
+#        #doxygen
+#        - doxygen Doxyfile
+#        #presun html do docs
+#        - ssh -t -t -p 90 $DEST_IP mkdir -p $DEST_PATH/$CI_PROJECT_NAME/docs
+#        - scp -r -P 90 ./html/* $DEST_IP:$DEST_PATH/$CI_PROJECT_NAME/docs
+

+ 22 - 0
LICENSE

@@ -0,0 +1,22 @@
+MIT License
+
+Copyright (c) 2022 Juraj Ďuďák
+Copyright (c) 2021 Eunhye Seok - https://github.com/mokhwasomssi/stm32_hal_icm20948
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.

+ 8 - 0
apollo.json

@@ -0,0 +1,8 @@
+{
+	"name":"ICM 20948 C library",
+	"logo":"https://gitlab.nsoric.com/uploads/-/system/project/avatar/115/sb_icm-20948.png",
+	"description":"Low-Lever driver pre IMU ICM-20948",
+	"tags":[],
+	"has_docs": false,
+	"git":"https://gitlab.nsoric.com/mtf/stm32/librararies/icm-20948-driver"
+}