.gitlab-ci.yml 4.44 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
    - sconfig-arm
42
    - sclean-build-arm
43
    - sbuild-arm
44
    - test_00001_arm
45

46
#Build SPARC
47
config_sparc:
48 49
#    tags: 
#        - sparc
50
    stage: sconfig-sparc
51
    script:
52
        - cp $AIR/../utils/gitlab-runner/.sparc_config .
53
        - ./configure -f .sparc_config
54 55 56

build_sparc:
#    tags:
57
#        - sparc
58
    stage: sbuild-sparc
59
    script:
60
        - make clean # to be removed and used only on failure
61
        - make
62 63

#clean_build_sparc:
64 65 66 67 68 69 70
#    tags: 
#        - sparc
#    stage: sclean-build-sparc
#    script:
#        - make clean
#        - make
#    when: on_failure
71 72


73
#Build for ARM
74
config_arm:
75 76
#    tags: 
#        - arm_qemu
77 78
    stage: sconfig-arm
    script:
79
        -  cp $AIR/../utils/gitlab-runner/.arm_config . 
80
        - ./configure -f .arm_config
81

82 83 84
build_arm:
#    tags: 
#        - arm_qemu
85 86
    stage: sbuild-arm
    script:
87
        - make clean # to be removed and used only on failure
88 89
        - make

90 91 92 93 94 95
#clean_build_arm:
#    tags: 
#        - arm_qemu
#    stage: scleanbuild-arm
#    script:
#        - make clean
96
#        - make
97
#    when: on_failure
98 99 100 101 102 103


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

139 140 141 142 143 144 145 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 171 172 173 174 175 176 177 178 179 180


#00021_sparc: ## Failing in step 5
##    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

#00022_sparc: ## Failing in step 5
##    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: ## Failing in step 5
##    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


########################        
#Tests for ARM         #
########################
181 182
#    tags: 
#        - arm_qemu
183 184
00001_arm:
    stage: test_00001_arm
185 186 187 188 189 190 191
    script:
        - cd $AIR/examples/arm_unit_tests/lionel
        - configure
        - make clean
        - make
        - cp $AIR/../utils/gitlab-runner/* .
        - ls
192
        - ./do_zynqz1_qemu.bash
193 194 195 196
        - ./testcheck.py
        - cd $AIR
    environment:
        name: ARM ZYNQZ1