.gitlab-ci.yml 2.92 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
        
#Cronological order of jobs to be done
#To be divided in the future in multiple VMs
31 32 33
stages: 
    - sconfig-sparc
    - sbuild-sparc
34
    - sclean-build-sparc
35
    - test_0009_sparc
36
    - sconfig-arm
37
    - sclean-build-arm
38
    - sbuild-arm
39
    - test_0001_arm
40

41
#Build SPARC
42
config_sparc:
43 44
#    tags: 
#        - sparc
45
    stage: sconfig-sparc
46
    script:
47
        - cp $AIR/../utils/gitlab-runner/.sparc_config .
48 49
        - ./configure -f .sparc_config
        
50 51 52
build_sparc: 
#    tags: 
#        - sparc
53
    stage: sbuild-sparc
54
    script:
55
        - make clean # to be removed and used only on failure
56 57
        - make
        
58 59 60 61 62 63 64 65 66 67 68
#clean_build_sparc:        
#    tags: 
#        - sparc
#    stage: sclean-build-sparc
#    script:
#        - make clean
#        - make
#    when: on_failure
    
        
#Build for ARM
69
config_arm:
70 71
#    tags: 
#        - arm_qemu
72 73
    stage: sconfig-arm
    script:
74
        -  cp $AIR/../utils/gitlab-runner/.arm_config . 
75 76
        - ./configure -f .arm_config
        
77 78 79
build_arm:
#    tags: 
#        - arm_qemu
80 81
    stage: sbuild-arm
    script:
82
        - make clean # to be removed and used only on failure
83 84
        - make

85 86 87 88 89 90 91 92 93 94 95
#clean_build_arm:
#    tags: 
#        - arm_qemu
#    stage: scleanbuild-arm
#    script:
#        - make clean
#        - make     
#    when: on_failure
        
        
#Tests for SPARC
96
0009_sparc:
97 98
#    tags: 
#        - sparc
99 100 101 102
    stage: test_0009_sparc
    script:
        - cd $AIR/examples/validation/TEST-DEF-00009
        - configure
103 104
        - make clean
        - make
105 106
        - cp $AIR/../utils/gitlab-runner/* .
        - ls
107
        - ./do_leon4_grmon.sh
108 109 110 111
        - ./testcheck.py
        - cd $AIR
    environment:
        name: SPARC LEON4
112

113 114 115
#Test for ARM
#    tags: 
#        - arm_qemu
116 117 118 119 120 121 122 123 124 125 126 127 128 129
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