Skip to content
Snippets Groups Projects
PL1

Draft: Kickoff cli

Closed Imported Juan Font Alonso requested to merge kickoff_cli into master
8 unresolved threads

Merge request reports

Checking pipeline status.

Closed by Juan Font AlonsoJuan Font Alonso 2 years ago (Oct 21, 2022 8:53am UTC)

Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
1 #!/usr/bin/env python3
2
3 import os
4 import subprocess
5 import argparse
6 from fnmatch import fnmatch
7
8
9 def clang_format(root_dir: str) -> None:
10 clang_format_cmd = ['clang-format', '-i']
  • 20 20 #include "interfacetypecreator.h"
    21 21
    22 22 #include "datatypetranslationhelper.h"
    23 #include "generictypecreator.h"
    23 //#include "generictypecreator.h"
  • 603 603
    604 604 auto SedsPlugin::addFilesToCurrentProject(QStringList filenames, const QString &path) -> void
    605 605 {
    606 #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
    • Author Contributor

      As this is check regarding the QtCreator API, something like #if QTC_VERSION < 500 (this would be to chek for version less than 5.0)

      #if QTC_VERSION > 414 would check for QtCreator greater than 4.14

      By Guenter Schwann on 2022-09-02T09:10:54

    • Please register or sign in to reply
  • 89 89 m_plugin->mainModel()->chartViewModel().updateLayout();
    90 90 m_plugin->chartView()->setZoom(100);
    91 91 }
    92 connect(mainWidget, &msc::MscAppWidget::showAsn1File, this,
    93 [&](const QString &asnFilename) { Core::EditorManager::instance()->openEditor(asnFilename); });
    92 connect(mainWidget, &msc::MscAppWidget::showAsn1File, this, [&](const QString &asnFilename) {
    93
    94 #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
  • 52 52
    53 53 const QByteArray expectedData = expectedOutFile.readAll();
    54 54 const QString expectedText = QString::fromStdString(expectedData.toStdString());
    55 const QStringList expectedStringList = expectedText.split("\n");
    56 const QVector<QString> expectedStringVector = expectedStringList.toVector();
    57 std::vector<QString> expectedOutput = expectedStringVector.toStdVector();
    55 QStringList expectedStringList = expectedText.split("\n");
    56 // const QVector<QString> expectedStringVector = expectedStringList.toVector();
  • 80 80 SortIncludes: true
    81 81 IncludeBlocks: Regroup
    82 82 AlignAfterOpenBracket: DontAlign
    83
    84 # Spaces In Empty places is set to false to mimic clang-format version7 which runs on ESA CI
    85 #SpaceInEmptyBlock: false
  • 26 26 - apt install -y build-essential git g++ cmake cmake-data ninja-build make gcovr lcov ccache cccc doxygen graphviz zip p7zip curl wget default-jre uuid-dev pkg-config fuse python3-pip clang-format spin python3-pygraphviz python3-singledispatch python3-stringtemplate3 python3-pexpect
    27 27 # install OpenGEODE dependencies
    28 28 # *Python (both for OpenGEODE and sdl2promela)
    29 - pip3 install black==21.10b0 multipledispatch pyside6 pytest
    29 - pip3 install black==21.10b0 multipledispatch pyside6 pytest py7zr aqtinstall GitPython
    30 30 # install newest OpenGEODE (must be intalled in the same directory, removal is more robust than git clean/checkout/force)
    31 31 - pushd $HOME/tool-src; rm -r opengeode ; git clone https://gitrepos.estec.esa.int/taste/opengeode.git ; cd opengeode ; make install; popd
    32 32 # install sdl2promela
    33 33 - git clone https://github.com/n7space/sdl2promela.git
    34 34 - pushd sdl2promela ; make install ; popd
    35 35 # install qtcreator sources
    36 - ./scripts/download_qtcreator.sh
    37 - ./scripts/build_grantlee.sh
    36 #- ./scripts/download_qtcreator.sh
  • 66 67 get_target_property(QtCore_location ${QT_CORE} LOCATION)
    67 68 get_filename_component(QT_DIR ${QtCore_location} DIRECTORY)
    68 69 get_filename_component(QT_DIR ${QT_DIR} DIRECTORY)
    69 set(Grantlee5_DIR "${QT_DIR}/lib/cmake/Grantlee5")
    70 # set(Grantlee5_DIR "${QT_DIR}/lib/cmake/Grantlee5")
  • Juan Font Alonso added 1 commit · Imported

    added 1 commit

    • 0af8cb0f - prebuild.py downloads asn1scc and appimagetool

    Compare with previous version

    By Kasper Fisker on 2022-09-02T13:50:40

  • Juan Font Alonso added 1 commit · Imported

    added 1 commit

    Compare with previous version

    By Kasper Fisker on 2022-09-05T10:26:35

  • Juan Font Alonso closed · Imported

    closed

  • Please register or sign in to reply
    Loading