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

54
#Build SPARC
55
config_sparc:
56 57
#    tags: 
#        - sparc
58
    stage: sconfig-sparc
59
    script:
60
        - cp $AIR/../utils/gitlab-runner/.sparc_config .
61
        - ./configure -f .sparc_config
62 63 64

build_sparc:
#    tags:
65
#        - sparc
66
    stage: sbuild-sparc
67
    script:
68
        - make clean # to be removed and used only on failure
69
        - make -j3
70 71

#clean_build_sparc:
72 73 74 75 76 77 78
#    tags: 
#        - sparc
#    stage: sclean-build-sparc
#    script:
#        - make clean
#        - make
#    when: on_failure
79 80


81
#Build for ARM
82
config_arm:
83 84
#    tags: 
#        - arm_qemu
85 86
    stage: sconfig-arm
    script:
87
        -  cp $AIR/../utils/gitlab-runner/.arm_config . 
88
        - ./configure -f .arm_config
89

90 91 92
build_arm:
#    tags: 
#        - arm_qemu
93 94
    stage: sbuild-arm
    script:
95
        - make clean # to be removed and used only on failure
96
        - make -j3
97

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


########################
109
#Example Tests for SPARC       #
110
########################
111 112 113 114 115 116 117 118 119 120 121 122
hello_sparc:
#    tags: 
#        - sparc
    stage: test_hello_world_sparc
    script:
        - cd $AIR/examples/hello_world
        - cp $AIR/../utils/gitlab-runner/* .
        - ./do_leon4_grmon.bash
        - cd $AIR
    environment:
        name: SPARC LEON4

123 124 125 126 127 128 129 130 131 132 133 134 135 136 137
        hello_sparc:
#    tags: 
#        - sparc
    stage: test_hm_sparc
    script:
        - cd $AIR/examples/hm
        - cp $AIR/../utils/gitlab-runner/* .
        - ./do_leon4_grmon.bash
        - cd $AIR
    environment:
        name: SPARC LEON4
########################
#Unit Tests for SPARC       #
########################

138

139
00009_sparc:
140 141
#    tags: 
#        - sparc
142
    stage: test_00009_sparc
143 144 145
    script:
        - cd $AIR/examples/validation/TEST-DEF-00009
        - cp $AIR/../utils/gitlab-runner/* .
146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170
        - ./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
171 172 173
        - cd $AIR
    environment:
        name: SPARC LEON4
174

175 176


177 178 179 180 181 182 183 184 185 186 187
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
188

189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211
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
212

213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260
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

261 262 263 264 265 266 267 268 269 270 271 272 273
00600_sparc: 
#    tags: 
#        - sparc
    stage: test_00600_sparc
    script:
        - cd $AIR/examples/validation/TEST-DEF-00600
        - cp $AIR/../utils/gitlab-runner/* .
        - ./do_leon4_grmon.bash
        - cd $AIR
    environment:
        name: SPARC LEON4

        
274
########################
275 276
#Tests for ARM         #
########################
277 278
#    tags: 
#        - arm_qemu
279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295

#hello_world_arm:
#    stage: test_hello_world_arm
#    script:
#        - cd $AIR/examples/hello_world
#        - configure
#        - make clean
#        - make
#        - cp $AIR/../utils/gitlab-runner/* .
#        - ls
#        - ./do_zynqz1_qemu.bash#
#        - ./testcheck.py
#        - cd $AIR
#    environment:
#        name: ARM ZYNQZ1


296 297
00001_arm:
    stage: test_00001_arm
298 299 300 301 302 303 304
    script:
        - cd $AIR/examples/arm_unit_tests/lionel
        - configure
        - make clean
        - make
        - cp $AIR/../utils/gitlab-runner/* .
        - ls
305
        - ./do_zynqz1_qemu.bash
306 307 308 309
        - ./testcheck.py
        - cd $AIR
    environment:
        name: ARM ZYNQZ1