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

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

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

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


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

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

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


########################
#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
00009_sparc:
124 125
#    tags: 
#        - sparc
126
    stage: test_00009_sparc
127 128 129
    script:
        - cd $AIR/examples/validation/TEST-DEF-00009
        - cp $AIR/../utils/gitlab-runner/* .
130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154
        - ./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
155 156 157
        - cd $AIR
    environment:
        name: SPARC LEON4
158

159 160


161 162 163 164 165 166 167 168 169 170 171
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
172

173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195
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
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 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244
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

245 246 247 248 249 250 251 252 253 254 255 256 257
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

        
258
########################
259 260
#Tests for ARM         #
########################
261 262
#    tags: 
#        - arm_qemu
263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279

#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


280 281
00001_arm:
    stage: test_00001_arm
282 283 284 285 286 287 288
    script:
        - cd $AIR/examples/arm_unit_tests/lionel
        - configure
        - make clean
        - make
        - cp $AIR/../utils/gitlab-runner/* .
        - ls
289
        - ./do_zynqz1_qemu.bash
290 291 292 293
        - ./testcheck.py
        - cd $AIR
    environment:
        name: ARM ZYNQZ1