.gitlab-ci.yml 2.14 KB
Newer Older
1
# First version for AIR main source code
2
# Executed in TASTE VM centralized in 192.19.13.167
3
# author: dtms @GMV 2020
4

5 6 7
variables:
    GIT_CLEAN_FLAGS: none

8 9 10 11 12 13
default:
    before_script:
        - cd air
        - pwd
        - ls
        - export RTEMS410=/opt/rtems-4.10/bin
14
        - export AIR=`pwd`
15 16 17 18 19 20 21 22
        - export PATH=$PATH:$AIR
        - export PATH=$PATH:$RTEMS410
        - export GIT_SSL_NO_VERIFY=1
        - export AIR_INSTALL=$AIR/install
        - export AIR_PMK=$AIR_INSTALL/pmk
        - export AIR_POS=$AIR_INSTALL/pos
        - export RTEMS_MAKEFILE_PATH=$AIR_POS/rtems5/rtems5-install/sparc-rtems5/leon3
        - export PATH=$PATH:/opt/rtems-5.1-2019.07.25/bin
23 24
        - export PATH=$PATH:/home/taste/work/gcc-arm-9.2-2019.12-x86_64-arm-none-eabi/bin
        - export PATH=/opt/rtems-5-arm/bin:$PATH
25 26 27
        - git submodule sync --recursive
        - git submodule update --init --recursive

28 29 30
stages: 
    - sconfig-sparc
    - sbuild-sparc
31
    - test_0009_sparc
32 33
    - sconfig-arm
    - sbuild-arm
34
    - test_0001_arm
35

36 37
config_sparc:
    stage: sconfig-sparc
38
    script:
39
        - cp $AIR/../utils/gitlab-runner/.sparc_config .
40 41 42 43
        - ./configure -f .sparc_config
        
build_sparc:        
    stage: sbuild-sparc
44
    script:
45
        - make clean
46 47 48 49 50
        - make
        
config_arm:
    stage: sconfig-arm
    script:
51
        -  cp $AIR/../utils/gitlab-runner/.arm_config . 
52 53 54 55 56
        - ./configure -f .arm_config
        
build_arm:        
    stage: sbuild-arm
    script:
57
        - make clean
58 59 60 61 62 63 64
        - make

0009_sparc:
    stage: test_0009_sparc
    script:
        - cd $AIR/examples/validation/TEST-DEF-00009
        - configure
65 66
        - make clean
        - make
67 68
        - cp $AIR/../utils/gitlab-runner/* .
        - ls
69
        - ./do_leon4_grmon.sh
70 71 72 73
        - ./testcheck.py
        - cd $AIR
    environment:
        name: SPARC LEON4
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88

0009_arm:
    stage: test_0001_arm
    script:
        - cd $AIR/examples/arm_unit_tests/lionel
        - configure
        - make clean
        - make
        - cp $AIR/../utils/gitlab-runner/* .
        - ls
        - ./do_zynqz1_qemu.sh
        - ./testcheck.py
        - cd $AIR
    environment:
        name: ARM ZYNQZ1