Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 40b08191 authored by Vauban's avatar Vauban
Browse files

CI: Update CI for re-organized gateware repository.

parent 2bb61782
Branches
No related merge requests found
stages: # List of stages for jobs, and their order of execution stages: # List of stages for jobs, and their order of execution
- build - build
build-job: # This job runs in the build stage, which runs first. build-job: # This job runs in the build stage, which runs first.
stage: build stage: build
variables:
BUILD_OPTIONS_DIRECTORY: "custom-fpga-design"
BRANCH_UNDER_TEST: "develop"
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event" && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "main" || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "develop")
variables:
BUILD_OPTIONS_DIRECTORY: "build-options"
BRANCH_UNDER_TEST: $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME
- if: $CI_PIPELINE_SOURCE == "push"
variables:
BUILD_OPTIONS_DIRECTORY: "custom-fpga-design"
BRANCH_UNDER_TEST: $CI_COMMIT_BRANCH
script: script:
- echo "Compiling the code..." - echo "Cloning the tester and gateware..."
- export - export
- source ~/Microchip/Microchip-FPGA-Tools-Setup/setup-microchip-tools.sh - source ~/Microchip/Microchip-FPGA-Tools-Setup/setup-microchip-tools.sh
- git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@git.beagleboard.org/beaglev-fire/gateware-builds-tester.git - git clone https://git.beagleboard.org/beaglev-fire/gateware-builds-tester.git
- cd gateware-builds-tester - cd gateware-builds-tester
- git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@git.beagleboard.org/beaglev-fire/bitstream-builder.git -b develop - git clone $CI_MERGE_REQUEST_SOURCE_PROJECT_URL -b $BRANCH_UNDER_TEST
- python3 bitstream-builds-tester.py "$CI_MERGE_REQUEST_SOURCE_PROJECT_URL" gateware "$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME" "$CI_MERGE_REQUEST_TARGET_BRANCH_NAME" - echo "Building the gateware..."
- python3 bitstream-builds-tester.py $BUILD_OPTIONS_DIRECTORY
- echo "$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME" - echo "$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME"
- echo "$CI_MERGE_REQUEST_TARGET_BRANCH_NAME" - echo "$CI_MERGE_REQUEST_TARGET_BRANCH_NAME"
- echo "Compile complete." - echo "Compile complete."
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
when: always
artifacts: artifacts:
when: always when: always
paths: paths:
- gateware-builds-tester/artifacts/tests_report.xml - gateware-builds-tester/artifacts/
- gateware-builds-tester/artifacts.zip
reports: reports:
junit: gateware-builds-tester/artifacts/tests_report.xml junit: gateware-builds-tester/artifacts/tests_report.xml
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment