Procházet zdrojové kódy

remove legacy CI/CD files

Martin Melik Merkumians před 1 měsícem
rodič
revize
27cafb4743

+ 0 - 71
.github/workflows/cmake.yml

@@ -1,71 +0,0 @@
-name: CMake
-
-on:
-  push:
-    branches: [ "master" ]
-  pull_request:
-    branches: [ "master" ]
-
-env:
-  # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
-  BUILD_TYPE: Release
-  BUILD_WRAPPER_OUT_DIR: build_wrapper_output_directory # Directory where build-wrapper output will be placed
-
-jobs:
-  build:
-    # The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
-    # You can convert this to a matrix build if you need cross-platform coverage.
-    # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
-    name: Build
-    runs-on: ubuntu-latest
-    env:
-      BUILD_WRAPPER_OUT_DIR: build_wrapper_output_directory # Directory where build-wrapper output will be placed
-
-    steps:
-      - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3
-        with:
-          fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
-
-      - name: Set up Python 3.8 for gcovr
-        uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548
-        with: 
-          python-version: 3.8
-
-      - name: install gcovr 5.0
-        run: |
-          pip install gcovr==5.0 # 5.1 is not supported
-          
-      - name: Install libcap, lcov, and CppUTest
-        run: sudo apt-get install -y libcap-dev lcov cpputest
-
-      - name: Install sonar-scanner and build-wrapper
-        uses: SonarSource/sonarcloud-github-c-cpp@83679a892e2d95755f2dac6acb0bfd1e9ac5d548
-
-      - name: Configure CMake
-        # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
-      #  See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
-        run: cmake -S ${{github.workspace}}/source -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DOpENer_PLATFORM:STRING="POSIX" -DBUILD_SHARED_LIBS:BOOL=OFF -DOpENer_TRACES:BOOL=OFF -DOpENer_TESTS:BOOL=ON -DCPPUTEST_HOME:PATH=/usr
-
-      - name: Build
-        # Build your program with the given configuration
-        run: |
-          build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
-
-      - name: Test
-        working-directory: ${{github.workspace}}/build
-        # Execute tests defined by the CMake configuration.
-        # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
-        run: ctest -C ${{env.BUILD_TYPE}}
-
-      - name: Collect coverage into one XML report
-        run: |
-          gcovr --sonarqube > coverage.xml
-    
-      - name: Run sonar-scanner
-        env:
-          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-          SONAR_TOKEN: ${{ secrets.SONAR_TOKEN  }} # Put the name of your token here
-        run: |
-          sonar-scanner \
-            --define sonar.cfamily.build-wrapper-output="${{ env.BUILD_WRAPPER_OUT_DIR }}" \
-            --define sonar.coverageReportPaths=coverage.xml

+ 0 - 16
travis_scripts/compileGcovResults.sh

@@ -1,16 +0,0 @@
-#!/usr/bin/env sh
-
-# Delete old gcov folder
-rm -rf gcov_results
-
-# Create new gcov folder
-mkdir gcov_results
-# Change into results folder
-cd gcov_results
-# Get all object files
-OBJECTS=$(find ../src -iname "*.o")
-# Process all files
-for o in $OBJECTS; 
-do 
-  gcov -abcfu $o; 
-done

+ 0 - 108
travis_scripts/generateDocumentationAndDeploy.sh

@@ -1,108 +0,0 @@
-#!/bin/sh
-################################################################################
-# Title         : generateDocumentationAndDeploy.sh
-# Date created  : 2016/12/09
-# Notes         :
-__AUTHOR__="Martin Melik-Merkumians"
-# Preconditions:
-# - Packages doxygen doxygen-doc doxygen-latex doxygen-gui graphviz
-#   must be installed.
-# - Doxygen configuration file must have the destination directory empty and
-#   source code directory with a $(TRAVIS_BUILD_DIR) prefix.
-# - An gh-pages branch should already exist. See below for mor info on hoe to
-#   create a gh-pages branch.
-#
-# Required global variables:
-# - TRAVIS_BUILD_NUMBER : The number of the current build.
-# - TRAVIS_COMMIT       : The commit that the current build is testing.
-# - DOXYFILE            : The Doxygen configuration file.
-# - GH_REPO_NAME        : The name of the repository.
-# - GH_REPO_REF         : The GitHub reference to the repository.
-# - GH_REPO_TOKEN       : Secure token to the github repository.
-#
-# For information on how to encrypt variables for Travis CI please go to
-# https://docs.travis-ci.com/user/environment-variables/#Encrypted-Variables
-# or https://gist.github.com/vidavidorra/7ed6166a46c537d3cbd2
-# For information on how to create a clean gh-pages branch from the master
-# branch, please go to https://gist.github.com/vidavidorra/846a2fc7dd51f4fe56a0
-#
-# This script will generate Doxygen documentation and push the documentation to
-# the gh-pages branch of a repository specified by GH_REPO_REF.
-# Before this script is used there should already be a gh-pages branch in the
-# repository.
-# 
-################################################################################
-
-################################################################################
-##### Setup this script and get the current gh-pages branch.               #####
-echo 'Setting up the script...'
-# Exit with nonzero exit code if anything fails
-set -e
-
-# Create a clean working directory for this script.
-mkdir code_docs
-cd code_docs
-
-# Get the current gh-pages branch
-git clone -b gh-pages https://git@$GH_REPO_REF
-
-cd $GH_REPO_NAME
-##### Configure git.
-# Set the push default to simple i.e. push only the current branch.
-git config --global push.default simple
-# Pretend to be an user called Travis CI.
-git config user.name "Travis CI"
-git config user.email "travis@eipstackgroup.org"
-
-# Remove everything currently in the gh-pages branch.
-# GitHub is smart enough to know which files have changed and which files have
-# stayed the same and will only update the changed files. So the gh-pages branch
-# can be safely cleaned, and it is sure that everything pushed later is the new
-# documentation.
-rm -rf *
-
-# Need to create a .nojekyll file to allow filenames starting with an underscore
-# to be seen on the gh-pages site. Therefore creating an empty .nojekyll file.
-# Presumably this is only needed when the SHORT_NAMES option in Doxygen is set
-# to NO, which it is by default. So creating the file just in case.
-echo "" > .nojekyll
-
-cd ../..
-
-################################################################################
-##### Generate the Doxygen code documentation and log the output.          #####
-echo 'Generating Doxygen code documentation...'
-# Redirect both stderr and stdout to the log file AND the console.
-doxygen $DOXYFILE 2>&1 | tee doxygen.log
-
-cp -r doc/api_doc/html/* code_docs/$GH_REPO_NAME
-cd code_docs/$GH_REPO_NAME
-
-################################################################################
-##### Upload the documentation to the gh-pages branch of the repository.   #####
-# Only upload if Doxygen successfully created the documentation.
-# Check this by verifying that the html directory and the file html/index.html
-# both exist. This is a good indication that Doxygen did it's work.
-if [ -f "index.html" ]; then
-
-    echo 'Uploading documentation to the gh-pages branch...'
-    # Add everything in this directory (the Doxygen code documentation) to the
-    # gh-pages branch.
-    # GitHub is smart enough to know which files have changed and which files have
-    # stayed the same and will only update the changed files.
-    git add --all .
-
-    # Commit the added files with a title and description containing the Travis CI
-    # build number and the GitHub commit reference that issued this build.
-    git commit -m "Deploy code docs to GitHub Pages Travis build: ${TRAVIS_BUILD_NUMBER}" -m "Commit: ${TRAVIS_COMMIT}"
-
-    # Force push to the remote gh-pages branch.
-    # The ouput is redirected to /dev/null to hide any sensitive credential data
-    # that might otherwise be exposed.
-    git push --force "https://${GH_REPO_TOKEN}@${GH_REPO_REF}" HEAD:gh-pages > /dev/null 2>&1
-else
-    echo '' >&2
-    echo 'Warning: No documentation (html) files have been found!' >&2
-    echo 'Warning: Not going to push the documentation to GitHub!' >&2
-    exit 1
-fi

+ 0 - 16
travis_scripts/installCppUTestDependency.sh

@@ -1,16 +0,0 @@
-#!/bin/sh
-
-echo 'Setting up the CppUTest script...'
-# Exit with nonzero exit code if anything fails
-set -e
-
-mkdir dependencies
-cd dependencies
-
-git clone https://github.com/cpputest/cpputest.git
-
-cd cpputest
-git checkout v3.8
-cmake CMakeLists.txt
-make
-cd ../..

+ 0 - 9
travis_scripts/linuxAfterSuccessScript.sh

@@ -1,9 +0,0 @@
-#!/bin/bash
-
-echo 'Linux After Success Script started...'
-# Exit with nonzero exit code if anything fails
-set -e
-
-cd $TRAVIS_BUILD_DIR/source
-chmod +x $TRAVIS_BUILD_DIR/travis_scripts/generateDocumentationAndDeploy.sh
-"$TRAVIS_BUILD_DIR/travis_scripts/generateDocumentationAndDeploy.sh"

+ 0 - 9
travis_scripts/linuxBeforeScript.sh

@@ -1,9 +0,0 @@
-#!/bin/bash
-
-echo 'Linux Before Script started...'
-# Exit with nonzero exit code if anything fails
-set -e
-
-cd $TRAVIS_BUILD_DIR/source
-chmod +x $TRAVIS_BUILD_DIR/travis_scripts/installCppUTestDependency.sh
-$TRAVIS_BUILD_DIR/travis_scripts/installCppUTestDependency.sh

+ 0 - 17
travis_scripts/linuxScript.sh

@@ -1,17 +0,0 @@
-#!/bin/bash
-
-echo 'Linux main Script started...'
-# Exit with nonzero exit code if anything fails
-set -e
-
-cd $TRAVIS_BUILD_DIR/source
-cmake -DOpENer_PLATFORM:STRING="POSIX" -DCMAKE_BUILD_TYPE:STRING="Debug" \
-  -DOpENer_TESTS:BOOL=ON -DCPPUTEST_HOME:PATH=$TRAVIS_BUILD_DIR/source/dependencies/cpputest \
-  -DCPPUTEST_LIBRARY:FILEPATH=$TRAVIS_BUILD_DIR/source/dependencies/cpputest/src/CppUTest/libCppUTest.a \
-  -DCPPUTESTEXT_LIBRARY:FILEPATH=$TRAVIS_BUILD_DIR/source/dependencies/cpputest/src/CppUTestExt/libCppUTestExt.a .
-build-wrapper-linux-x86-64 --out-dir bw-output make all
-ctest --output-on-failure
-make OpENer_coverage
-chmod +x $TRAVIS_BUILD_DIR/travis_scripts/compileGcovResults.sh
-$TRAVIS_BUILD_DIR/travis_scripts/compileGcovResults.sh
-sonar-scanner -Dproject.settings=$TRAVIS_BUILD_DIR/sonar-project.properties -Dsonar.sources=. -Dsonar.exclusions=OpENer_coverage/**,dependencies/**,CMakeFiles/** -Dsonar.cfamily.gcov.reportsPath=./gcov_results -Dsonar.coverage.exclusions=tests/*,src/ports/**/sample_application/*,tests/**/*

+ 0 - 8
travis_scripts/windowsMinGWScript.sh

@@ -1,8 +0,0 @@
-#!/bin/bash
-echo 'Windows MinGW main Script started...'
-# Exit with nonzero exit code if anything fails
-set -e
-
-cd $TRAVIS_BUILD_DIR/source
-cmake -G "MinGW Makefiles" -DOpENer_PLATFORM:STRING="MINGW" -DCMAKE_BUILD_TYPE:STRING="Debug" -DCMAKE_SH="CMAKE_SH-NOTFOUND" .
-mingw32-make

+ 0 - 9
travis_scripts/windowsScript.sh

@@ -1,9 +0,0 @@
-#!/bin/bash
-
-echo 'Windows main Script started...'
-# Exit with nonzero exit code if anything fails
-set -e
-
-cd $TRAVIS_BUILD_DIR/source
-cmake -DOpENer_PLATFORM:STRING="WIN32" -DCMAKE_BUILD_TYPE:STRING="Debug" .
-"c:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe" OpENer.sln //p:Configuration=Release //p:Platform="Win32"