"Fossies" - the Fresh Open Source Software Archive

Member "navit-0.5.6/.circleci/config.yml" (6 Mar 2021, 11312 Bytes) of package /linux/privat/navit-0.5.6.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Ansible YAML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "config.yml": 0.5.5_vs_0.5.6.

    1 version: 2
    2 defaults: &defaults
    3   docker:
    4     - image: debian:latest
    5 jobs:
    6   sanity_check:
    7     docker:
    8       - image: circleci/android:api-29-ndk
    9     steps:
   10       - checkout
   11       - run:
   12           name: run sanity check script
   13           command: bash scripts/ci_sanity_checks.sh
   14       - run:
   15           name: Run CheckStyle Test
   16           command: ./gradlew checkstyleMain
   17       - store_artifacts:
   18           name: Store checkstyle report
   19           path: navit/android/checkstyle
   20           destination: reports
   21   build_linux:
   22     <<: *defaults
   23     steps:
   24       - checkout
   25       - run: |
   26           apt-get update && apt-get install -y git
   27           if scripts/check_need_build.sh; then circleci step halt; fi
   28       - run:
   29           name: Id
   30           command: cat /etc/*release
   31       - run:
   32           name: Setup requirements
   33           command: |
   34             bash scripts/setup_common_requirements.sh
   35             apt-get install -y libpng-dev libfreetype6-dev libdbus-glib-1-dev libgtk2.0-dev curl
   36       - run:
   37           name: Build for Linux
   38           command: bash scripts/build_linux.sh
   39       - store_artifacts:
   40           path: linux/_CPack_Packages
   41       - run:
   42           name: Update Navit-Download-Center
   43           command: |
   44             bash scripts/update_download_center.sh
   45   run_doxygen:
   46     <<: *defaults
   47     steps:
   48       - checkout
   49       - run: if scripts/check_need_build.sh; then circleci step halt; fi
   50       - run:
   51           name: Install doxygen and other essentials
   52           command: apt-get update && apt-get -y install doxygen ca-certificates git rsync
   53       - run:
   54           name: Run doxygen
   55           command: cd navit && doxygen
   56       - run:
   57           name: Update results to Github
   58           command: bash scripts/update_doxygen.sh
   59       - store_artifacts:
   60           path: /root/project/doc
   61   build_sailfish:
   62     machine: true
   63     steps:
   64       - checkout
   65       - run: if scripts/check_need_build.sh; then circleci step halt; fi
   66       - run:
   67           name: install docker
   68           command: circleci-install docker
   69       - run:
   70           name: make build dir
   71           command:  mkdir ../rpmbuild
   72       - run:
   73           name: run build
   74           command: ls -lah ../rpmbuild && docker run -e VERSION_ID=3.1.0.12 -v `pwd`/../rpmbuild:/home/nemo/rpmbuild:rw -v `pwd`:/home/nemo/navit hoehnp/sailfishos-platform-sdk:3.1.0.12 /bin/bash -x /home/nemo/navit/contrib/sailfish/build_sailfish_ci.sh
   75       - store_artifacts:
   76           name: Store rpm
   77           path: ../rpmbuild/RPMS/
   78           destination: rpmbuild
   79   build_android:
   80     working_directory: ~/code
   81     docker:
   82       - image: circleci/android:api-29-ndk
   83     environment:
   84       JVM_OPTS: -Xmx3200m
   85       GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
   86       KEYSTORE: '/home/circleci/.keystore'
   87     steps:
   88       - checkout
   89       - run: if scripts/check_need_build.sh; then circleci step halt; fi
   90       - run:
   91           name: Install requirements
   92           command: scripts/setup_android.sh
   93       - run:
   94           name: Setup Keystore and Playstore Keys
   95           command: scripts/setup_publish_keys.sh
   96       - run:
   97           name: Build and upload Android
   98           command: fastlane circleci
   99       - run:
  100           name: Run Lint Test
  101           command: |
  102             ln -s navit/navit.dtd navit.dtd
  103             mkdir /home/circleci/code/test-results
  104             ./gradlew lint test
  105       - run:
  106           name: Run Javadoc
  107           command: ./gradlew generateDebugJavadoc
  108       - store_artifacts:
  109           name: Store APK
  110           path: build/outputs/apk
  111           destination: apk
  112       - store_artifacts:
  113           name: Store logs
  114           path: build/outputs/logs
  115           destination: logs
  116       - store_artifacts:
  117           name: Store Javadoc
  118           path: build/outputs/docs/javadoc
  119           destination: doc
  120       - store_artifacts:
  121           name: Store Lint reports
  122           path: build/reports
  123           destination: reports
  124       - store_test_results:
  125           path: test-results
  126       - run:
  127           name: Update Navit-Download-Center
  128           command: |
  129             bash scripts/update_download_center.sh
  130   build_fdroid:
  131     docker:
  132       - image: registry.gitlab.com/fdroid/ci-images-client:latest
  133     steps:
  134       - checkout
  135       - run:
  136           name: Build with F-Droid
  137           command: |
  138             test -d build || mkdir build
  139             test -d fdroidserver || mkdir fdroidserver
  140             git ls-remote https://gitlab.com/fdroid/fdroidserver.git master
  141             curl --silent https://gitlab.com/fdroid/fdroidserver/repository/master/archive.tar.gz | tar -xz --directory=fdroidserver --strip-components=1
  142             export PATH="`pwd`/fdroidserver:$PATH"
  143             export PYTHONPATH="$CI_PROJECT_DIR/fdroidserver:$CI_PROJECT_DIR/fdroidserver/examples"
  144             export PYTHONUNBUFFERED=true
  145             bash fdroidserver/buildserver/setup-env-vars $ANDROID_HOME
  146             adduser --disabled-password --gecos "" vagrant
  147             ln -s $CI_PROJECT_DIR/fdroidserver /home/vagrant/fdroidserver
  148             mkdir -p /vagrant/cache
  149             wget -q https://services.gradle.org/distributions/gradle-5.6.2-bin.zip --output-document=/vagrant/cache/gradle-5.6.2-bin.zip
  150             bash fdroidserver/buildserver/provision-gradle
  151             bash fdroidserver/buildserver/provision-apt-get-install http://deb.debian.org/debian
  152             source /etc/profile.d/bsenv.sh
  153             apt-get dist-upgrade
  154             apt-get install -t stretch-backports fdroidserver python3-asn1crypto python3-ruamel.yaml yamllint
  155             apt-get purge fdroidserver
  156             export GRADLE_USER_HOME=$PWD/.gradle
  157             set -x
  158             apt-get install sudo
  159             fdroid build --verbose --on-server --no-tarball
  160       - store_artifacts:
  161            name: Store APK
  162            path: unsigned
  163            destination: apk
  164   build_win32:
  165     docker:
  166       - image: ubuntu:14.04
  167     steps:
  168       - checkout
  169       - run: |
  170           apt-get update && apt-get install -y git
  171           if scripts/check_need_build.sh; then circleci step halt; fi
  172       - run:
  173           name: Prepare the Windows build environment
  174           command: |
  175             apt-get update && xargs -a scripts/setup_14.04_requirements.list apt-get install -y
  176             apt-get install -y software-properties-common
  177             add-apt-repository -y ppa:george-edison55/cmake-3.x
  178             apt-get remove -y cmake
  179             apt-get install -y cmake3 mingw-w64 mingw-w64-tools default-jdk nsis libsaxonb-java curl
  180       - run:
  181           name: Build for Windows
  182           command: |
  183             bash scripts/build_win32.sh
  184       - store_artifacts:
  185           path: win32/navit.exe
  186       - run:
  187           name: Update Navit-Download-Center
  188           command: |
  189             bash scripts/update_download_center.sh
  190   build_wince:
  191     docker:
  192       - image: navit/dockerfiles:wince
  193     steps:
  194       - checkout
  195       - run: |
  196           apt-get update && apt-get install -y git-core
  197           if scripts/check_need_build.sh; then circleci step halt; fi
  198       - run:
  199           name: Prepare the WinCE build environment
  200           command: |
  201             bash scripts/setup_wince.sh
  202       - run:
  203           name: Build for Windows CE
  204           command: bash scripts/build_wince.sh
  205       - store_artifacts:
  206           path: wince/output
  207       - run:
  208           name: Update Navit-Download-Center
  209           command: |
  210             bash scripts/update_download_center.sh
  211   build_tomtom_minimal:
  212     <<: *defaults
  213     docker:
  214       - image: navit/tomtom-ng
  215     steps:
  216       - checkout
  217       - run: if scripts/check_need_build.sh; then circleci step halt; fi
  218       - run:
  219           name: Prepare the tomtom build environment
  220           command: |
  221             bash scripts/setup_common_requirements.sh
  222             apt-get install -y xsltproc
  223       - run:
  224           name: Build for Tomtom (minimal)
  225           command: |
  226             bash scripts/build_tomtom_minimal.sh
  227       - store_artifacts:
  228           path: /output
  229       - run:
  230           name: Update Navit-Download-Center
  231           command: |
  232             bash scripts/update_download_center.sh
  233   build_tomtom_plugin:
  234     <<: *defaults
  235     docker:
  236       - image: navit/tomtom-ng
  237     steps:
  238       - checkout
  239       - run: if scripts/check_need_build.sh; then circleci step halt; fi
  240       - run:
  241           name: Prepare the tomtom build environment
  242           command: |
  243             bash scripts/setup_common_requirements.sh
  244             apt-get install -y xsltproc
  245       - run:
  246           name: Build for Tomtom (plugin)
  247           command: |
  248             bash scripts/build_tomtom_plugin.sh
  249       - store_artifacts:
  250           path: /output
  251       - run:
  252           name: Update Navit-Download-Center
  253           command: |
  254             bash scripts/update_download_center.sh
  255   merge_trunk_in_master:
  256     docker:
  257       - image: cimg/base:2020.01
  258     steps:
  259       - checkout
  260       - run:
  261           name: configure ssh git
  262           command: mkdir -p ~/.ssh/ && ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
  263       - add_ssh_keys:
  264           fingerprints:
  265             - "58:42:73:90:cc:68:f7:34:7e:37:37:fa:b3:26:1f:a5"
  266       - run:
  267           name: Update results to Github
  268           command: export GIT_TERMINAL_PROMPT=0 && git push origin $CIRCLE_SHA1:refs/heads/master
  269   check_spelling:
  270     <<: *defaults
  271     steps:
  272       - checkout
  273       - run:
  274           name: Install curl
  275           command: apt-get update && apt-get -y install curl
  276       - run:
  277           name: Install misspell
  278           command: |
  279               curl -L -o ./install-misspell.sh https://git.io/misspell
  280               sh ./install-misspell.sh -b /usr/local/bin/
  281       - run:
  282           name: Check docs folder for misspells
  283           command: |
  284               misspell docs/ > typos.txt
  285               if [[ $( wc -l < typos.txt ) -gt 0 ]]; then
  286                 echo "Typos/mispells found, please fix them";
  287                 cat typos.txt
  288                 exit -1
  289               fi
  290 
  291 
  292 workflows:
  293   version: 2
  294   build_all:
  295     jobs:
  296       - sanity_check
  297       - build_linux:
  298           requires:
  299             - sanity_check
  300       - build_android:
  301           requires:
  302             - sanity_check
  303       - build_fdroid:
  304           requires:
  305             - sanity_check
  306       - build_sailfish:
  307           requires:
  308             - sanity_check
  309       - build_win32:
  310           requires:
  311             - sanity_check
  312       - build_wince:
  313           requires:
  314             - sanity_check
  315       - build_tomtom_minimal:
  316           requires:
  317             - sanity_check
  318       - build_tomtom_plugin:
  319           requires:
  320             - sanity_check
  321       - run_doxygen:
  322           requires:
  323             - build_linux
  324             - build_android
  325             - build_win32
  326             - build_wince
  327             - build_tomtom_minimal
  328             - build_tomtom_plugin
  329           filters:
  330             branches:
  331               only: /^trunk$/
  332       - merge_trunk_in_master:
  333           requires:
  334             - build_linux
  335             - build_android
  336             - build_win32
  337             - build_wince
  338             - build_tomtom_minimal
  339             - build_tomtom_plugin
  340           filters:
  341             branches:
  342               only: /^trunk$/
  343       - check_spelling:
  344           filters:
  345             branches:
  346               only: /^readthedocs$/