.gitlab-ci.yml 5.5 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 36 37 38 39 40
    - test_00009_sparc
    - test_00010_sparc
    - test_00012_sparc
    - test_00021_sparc
    - test_00022_sparc
    - test_00023_sparc
41 42 43 44
    - test_00500_sparc
    - test_00510_sparc
    - test_00540_sparc
    - test_00560_sparc
45
    - sconfig-arm
46
    - sclean-build-arm
47
    - sbuild-arm
48
    - test_00001_arm
49

50
#Build SPARC
51
config_sparc:
52 53
#    tags: 
#        - sparc
54
    stage: sconfig-sparc
55
    script:
56
        - cp $AIR/../utils/gitlab-runner/.sparc_config .
57
        - ./configure -f .sparc_config
58 59 60

build_sparc:
#    tags:
61
#        - sparc
62
    stage: sbuild-sparc
63
    script:
64
        - make clean # to be removed and used only on failure
65
        - make
66 67

#clean_build_sparc:
68 69 70 71 72 73 74
#    tags: 
#        - sparc
#    stage: sclean-build-sparc
#    script:
#        - make clean
#        - make
#    when: on_failure
75 76


77
#Build for ARM
78
config_arm:
79 80
#    tags: 
#        - arm_qemu
81 82
    stage: sconfig-arm
    script:
83
        -  cp $AIR/../utils/gitlab-runner/.arm_config . 
84
        - ./configure -f .arm_config
85

86 87 88
build_arm:
#    tags: 
#        - arm_qemu
89 90
    stage: sbuild-arm
    script:
91
        - make clean # to be removed and used only on failure
92 93
        - make

94 95 96 97 98 99
#clean_build_arm:
#    tags: 
#        - arm_qemu
#    stage: scleanbuild-arm
#    script:
#        - make clean
100
#        - make
101
#    when: on_failure
102 103 104 105 106 107


########################
#Tests for SPARC       #
########################
00009_sparc:
108 109
#    tags: 
#        - sparc
110
    stage: test_00009_sparc
111 112 113
    script:
        - cd $AIR/examples/validation/TEST-DEF-00009
        - cp $AIR/../utils/gitlab-runner/* .
114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138
        - ./do_leon4_grmon.bash
        - cd $AIR
    environment:
        name: SPARC LEON4

00010_sparc:
#    tags: 
#        - sparc
    stage: test_00010_sparc
    script:
        - cd $AIR/examples/validation/TEST-DEF-00010
        - cp $AIR/../utils/gitlab-runner/* .
        - ./do_leon4_grmon.bash
        - cd $AIR
    environment:
        name: SPARC LEON4

00012_sparc:
#    tags: 
#        - sparc
    stage: test_00012_sparc
    script:
        - cd $AIR/examples/validation/TEST-DEF-00012
        - cp $AIR/../utils/gitlab-runner/* .
        - ./do_leon4_grmon.bash
139 140 141
        - cd $AIR
    environment:
        name: SPARC LEON4
142

143 144


145 146 147 148 149 150 151 152 153 154 155
00021_sparc: 
#    tags: 
#        - sparc
    stage: test_00021_sparc
    script:
        - cd $AIR/examples/validation/TEST-DEF-00021
        - cp $AIR/../utils/gitlab-runner/* .
        - ./do_leon4_grmon.bash
        - cd $AIR
    environment:
        name: SPARC LEON4
156

157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179
00022_sparc: 
#    tags: 
#        - sparc
    stage: test_00022_sparc
    script:
        - cd $AIR/examples/validation/TEST-DEF-00022
        - cp $AIR/../utils/gitlab-runner/* .
        - ./do_leon4_grmon.bash
        - cd $AIR
    environment:
        name: SPARC LEON4

00023_sparc: 
#    tags: 
#        - sparc
    stage: test_00023_sparc
    script:
        - cd $AIR/examples/validation/TEST-DEF-00023
        - cp $AIR/../utils/gitlab-runner/* .
        - ./do_leon4_grmon.bash
        - cd $AIR
    environment:
        name: SPARC LEON4
180

181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229
00500_sparc: 
#    tags: 
#        - sparc
    stage: test_00500_sparc
    script:
        - cd $AIR/examples/validation/TEST-DEF-00500
        - cp $AIR/../utils/gitlab-runner/* .
        - ./do_leon4_grmon.bash
        - cd $AIR
    environment:
        name: SPARC LEON4

00510_sparc: 
#    tags: 
#        - sparc
    stage: test_00510_sparc
    script:
        - cd $AIR/examples/validation/TEST-DEF-00510
        - cp $AIR/../utils/gitlab-runner/* .
        - ./do_leon4_grmon.bash
        - cd $AIR
    environment:
        name: SPARC LEON4

00540_sparc: 
#    tags: 
#        - sparc
    stage: test_00540_sparc
    script:
        - cd $AIR/examples/validation/TEST-DEF-00540
        - cp $AIR/../utils/gitlab-runner/* .
        - ./do_leon4_grmon.bash
        - cd $AIR
    environment:
        name: SPARC LEON4

00560_sparc: 
#    tags: 
#        - sparc
    stage: test_00560_sparc
    script:
        - cd $AIR/examples/validation/TEST-DEF-00560
        - cp $AIR/../utils/gitlab-runner/* .
        - ./do_leon4_grmon.bash
        - cd $AIR
    environment:
        name: SPARC LEON4

########################
230 231
#Tests for ARM         #
########################
232 233
#    tags: 
#        - arm_qemu
234 235
00001_arm:
    stage: test_00001_arm
236 237 238 239 240 241 242
    script:
        - cd $AIR/examples/arm_unit_tests/lionel
        - configure
        - make clean
        - make
        - cp $AIR/../utils/gitlab-runner/* .
        - ls
243
        - ./do_zynqz1_qemu.bash
244 245 246 247
        - ./testcheck.py
        - cd $AIR
    environment:
        name: ARM ZYNQZ1