.gitlab-ci.yml 5.9 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
Daniel Silveira's avatar
Daniel Silveira committed
31

32

33
#Build SPARC
34
config_sparc:
Daniel Silveira's avatar
Daniel Silveira committed
35 36
    tags: 
        - sparc-taste-debian1
37
    script:
38
        - cp $AIR/../utils/gitlab-runner/.sparc_config .
39
        - ./configure -f .sparc_config
40 41

build_sparc:
Daniel Silveira's avatar
Daniel Silveira committed
42 43
    tags: 
        - sparc-taste-debian1
44
    script:
Daniel Silveira's avatar
Daniel Silveira committed
45
        - make clean
46
        - make -j4
47

48
#Build for ARM
49
config_arm:
Daniel Silveira's avatar
Daniel Silveira committed
50 51
    tags: 
        - arm-taste-debian1
52
    script:
53
        -  cp $AIR/../utils/gitlab-runner/.arm_config . 
54
        - ./configure -f .arm_config
55

56
build_arm:
Daniel Silveira's avatar
Daniel Silveira committed
57 58
    tags: 
        - arm-taste-debian1
59
    script:
60
        - make clean # to be removed and used only on failure
61
        - make -j4
62

63 64 65 66 67 68
#clean_build_arm:
#    tags: 
#        - arm_qemu
#    stage: scleanbuild-arm
#    script:
#        - make clean
69
#        - make
70
#    when: on_failure
71 72 73


########################
74
#Example Tests for SPARC       #
75
########################
76
hello_sparc:
Daniel Silveira's avatar
Daniel Silveira committed
77 78
    tags: 
        - sparc-taste-debian1
79 80 81 82 83 84 85 86
    script:
        - cd $AIR/examples/hello_world
        - cp $AIR/../utils/gitlab-runner/* .
        - ./do_leon4_grmon.bash
        - cd $AIR
    environment:
        name: SPARC LEON4

Daniel Silveira's avatar
Daniel Silveira committed
87 88 89
hm_sparc:
    tags: 
        - sparc-taste-debian1
90 91 92 93 94 95 96 97 98 99 100
    script:
        - cd $AIR/examples/hm
        - cp $AIR/../utils/gitlab-runner/* .
        - ./do_leon4_grmon.bash
        - cd $AIR
    environment:
        name: SPARC LEON4
########################
#Unit Tests for SPARC       #
########################

101

102
00009_sparc:
Daniel Silveira's avatar
Daniel Silveira committed
103 104
    tags: 
        - sparc-taste-debian1
105 106 107
    script:
        - cd $AIR/examples/validation/TEST-DEF-00009
        - cp $AIR/../utils/gitlab-runner/* .
108 109 110 111 112 113
        - ./do_leon4_grmon.bash
        - cd $AIR
    environment:
        name: SPARC LEON4

00010_sparc:
Daniel Silveira's avatar
Daniel Silveira committed
114 115
    tags: 
        - sparc-taste-debian1
116 117 118 119 120 121 122 123 124
    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:
Daniel Silveira's avatar
Daniel Silveira committed
125 126
    tags: 
        - sparc-taste-debian1
127 128 129 130
    script:
        - cd $AIR/examples/validation/TEST-DEF-00012
        - cp $AIR/../utils/gitlab-runner/* .
        - ./do_leon4_grmon.bash
131 132 133
        - cd $AIR
    environment:
        name: SPARC LEON4
134

135 136


137
00021_sparc: 
Daniel Silveira's avatar
Daniel Silveira committed
138 139
    tags: 
        - sparc-taste-debian1
140 141 142 143 144 145 146
    script:
        - cd $AIR/examples/validation/TEST-DEF-00021
        - cp $AIR/../utils/gitlab-runner/* .
        - ./do_leon4_grmon.bash
        - cd $AIR
    environment:
        name: SPARC LEON4
147

148
00022_sparc: 
Daniel Silveira's avatar
Daniel Silveira committed
149 150
    tags: 
        - sparc-taste-debian1
151 152 153 154 155 156 157 158 159
    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: 
Daniel Silveira's avatar
Daniel Silveira committed
160 161
    tags: 
        - sparc-taste-debian1
162 163 164 165 166 167 168
    script:
        - cd $AIR/examples/validation/TEST-DEF-00023
        - cp $AIR/../utils/gitlab-runner/* .
        - ./do_leon4_grmon.bash
        - cd $AIR
    environment:
        name: SPARC LEON4
169

170
00500_sparc: 
Daniel Silveira's avatar
Daniel Silveira committed
171 172
    tags: 
        - sparc-taste-debian1
173 174 175 176 177 178 179 180 181
    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: 
Daniel Silveira's avatar
Daniel Silveira committed
182 183
    tags: 
        - sparc-taste-debian1
184 185 186 187 188 189 190 191 192
    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: 
Daniel Silveira's avatar
Daniel Silveira committed
193 194
    tags: 
        - sparc-taste-debian1
195 196 197 198 199 200 201 202 203
    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: 
Daniel Silveira's avatar
Daniel Silveira committed
204 205
    tags: 
        - sparc-taste-debian1
206 207 208 209 210 211 212 213
    script:
        - cd $AIR/examples/validation/TEST-DEF-00560
        - cp $AIR/../utils/gitlab-runner/* .
        - ./do_leon4_grmon.bash
        - cd $AIR
    environment:
        name: SPARC LEON4

214
00600_sparc: 
Daniel Silveira's avatar
Daniel Silveira committed
215 216
    tags: 
        - sparc-taste-debian1
217 218 219 220 221 222 223 224 225
    script:
        - cd $AIR/examples/validation/TEST-DEF-00600
        - cp $AIR/../utils/gitlab-runner/* .
        - ./do_leon4_grmon.bash
        - cd $AIR
    environment:
        name: SPARC LEON4

        
226
########################
227 228
#Tests for ARM         #
########################
229 230
#    tags: 
#        - arm_qemu
231

232
00001_arm:
Daniel Silveira's avatar
Daniel Silveira committed
233 234
    tags: 
        - arm-taste-debian1
235 236 237 238 239 240 241
    script:
        - cd $AIR/examples/arm_unit_tests/lionel
        - configure
        - make clean
        - make
        - cp $AIR/../utils/gitlab-runner/* .
        - ls
242
        - ./do_zynqz1_qemu.bash
243 244 245 246
        - ./testcheck.py
        - cd $AIR
    environment:
        name: ARM ZYNQZ1
Daniel Silveira's avatar
Daniel Silveira committed
247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262

hello_world_arm:
    tags: 
        - arm-taste-debian1
    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