.gitlab-ci.yml 3.85 KB
Newer Older
1
image: tapasco
2

3
4
5
variables:
  XILINXD_LICENSE_FILE: "/opt/cad/keys/xilinx"

6
before_script:
Jens Korinth's avatar
Fix    
Jens Korinth committed
7
  - uname -a
8
9
10
  - echo $SHELL
  - echo $PWD
  - source $PWD/setup.sh
11
12
  - source /root/.sdkman/bin/sdkman-init.sh
  - export SBT_OPTS="-Dsbt.global.base=$TAPASCO_HOME/.sbt/ -Dsbt.ivy.home=$TAPASCO_HOME/.ivy2/ -Divy.home=$TAPASCO_HOME/.ivy2/"
13

Jens Korinth's avatar
Jens Korinth committed
14
15
16
stages:
  - toolchain-test
  - hls
17
  - import
Jens Korinth's avatar
Jens Korinth committed
18
19
20
  - compose
  - dse

21
scala-test:
Jens Korinth's avatar
Jens Korinth committed
22
  stage: toolchain-test
23
24
  script:
    - sbt clean test
25

26
27
sbt-prepare:
  stage: toolchain-test
Jaco Hofmann's avatar
Jaco Hofmann committed
28
  cache:
29
      untracked: true
Jaco Hofmann's avatar
Jaco Hofmann committed
30
      key: "$CI_COMMIT_SHA-$CI_COMMIT_REF_NAME"
31
      policy: push
32
  script:
Jaco Hofmann's avatar
Jaco Hofmann committed
33
    - ls /cache_global
Jaco Hofmann's avatar
Jaco Hofmann committed
34
    - ls /opt/cad
35
    - sbt assembly
36
    #- cd $TAPASCO_HOME/common/ip/tapasco_status && ./chiselSetup.sh
37

Jens Korinth's avatar
Jens Korinth committed
38
39
.hls-template: &hls-definition
  stage: hls
40
41
  dependencies:
    - sbt-prepare
Jaco Hofmann's avatar
Jaco Hofmann committed
42
  cache:
43
      untracked: true
Jaco Hofmann's avatar
Jaco Hofmann committed
44
45
      key: "$CI_COMMIT_SHA-$CI_COMMIT_REF_NAME"
      policy: pull
Jaco Hofmann's avatar
Jaco Hofmann committed
46
  artifacts:
Jaco Hofmann's avatar
Jaco Hofmann committed
47
48
49
50
      when: on_failure
      expire_in: 1 day
      paths:
        - core
Jens Korinth's avatar
Jens Korinth committed
51
  script:
Jaco Hofmann's avatar
Jaco Hofmann committed
52
    - source /opt/cad/$VIVADO_OFFSET/settings64.sh
53
    - vivado -version
Jaco Hofmann's avatar
Jaco Hofmann committed
54
    - |
Jaco Hofmann's avatar
Jaco Hofmann committed
55
      if [ ! -d ".ivy2" ]; then
Jaco Hofmann's avatar
Jaco Hofmann committed
56
57
58
        echo "Cache not available"
        sbt assembly
      fi
Jaco Hofmann's avatar
Jaco Hofmann committed
59
    - tapasco hls arraysum, arrayinit
Jens Korinth's avatar
Jens Korinth committed
60
61
62
63

hls-2017.4:
  variables:
    VIVADO_VERSION: "2017.4"
64
    VIVADO_OFFSET: "xilinx/vivado/Vivado/$VIVADO_VERSION/"
Jens Korinth's avatar
Jens Korinth committed
65
66
67
68
69
  <<: *hls-definition

hls-2017.3:
  variables:
    VIVADO_VERSION: "2017.3"
70
    VIVADO_OFFSET: "xilinx/vivado/Vivado/$VIVADO_VERSION/"
Jens Korinth's avatar
Jens Korinth committed
71
72
73
74
75
  <<: *hls-definition

hls-2017.2:
  variables:
    VIVADO_VERSION: "2017.2"
76
    VIVADO_OFFSET: "xilinx/vivado/Vivado/$VIVADO_VERSION/"
Jens Korinth's avatar
Jens Korinth committed
77
78
79
80
81
  <<: *hls-definition

hls-2017.1:
  variables:
    VIVADO_VERSION: "2017.1"
82
    VIVADO_OFFSET: "xilinx/vivado/Vivado/$VIVADO_VERSION/"
Jens Korinth's avatar
Jens Korinth committed
83
84
  <<: *hls-definition

85
86
.import-template: &import-definition
  stage: import
87
88
  dependencies:
    - sbt-prepare
Jaco Hofmann's avatar
Jaco Hofmann committed
89
90
91
92
  cache:
      untracked: true
      key: "$CI_COMMIT_SHA-$CI_COMMIT_REF_NAME"
      policy: pull
93
  script:
Jaco Hofmann's avatar
Jaco Hofmann committed
94
    - source /opt/cad/$VIVADO_OFFSET/settings64.sh
Jaco Hofmann's avatar
Jaco Hofmann committed
95
    - |
Jaco Hofmann's avatar
Jaco Hofmann committed
96
      if [ ! -d ".ivy2" ]; then
Jaco Hofmann's avatar
Jaco Hofmann committed
97
98
99
        echo "Cache not available"
        sbt assembly
      fi
100
101
102
103
104
105
    - cd $TAPASCO_HOME/common/ip && zip -r precision_counter.zip precision_counter*
    - tapasco import $TAPASCO_HOME/common/ip/precision_counter.zip as 14

import-2017.4:
  variables:
    VIVADO_VERSION: "2017.4"
106
    VIVADO_OFFSET: "xilinx/vivado/Vivado/$VIVADO_VERSION/"
107
108
109
110
111
  <<: *import-definition

import-2017.3:
  variables:
    VIVADO_VERSION: "2017.3"
112
    VIVADO_OFFSET: "xilinx/vivado/Vivado/$VIVADO_VERSION/"
113
114
115
116
117
  <<: *import-definition

import-2017.2:
  variables:
    VIVADO_VERSION: "2017.2"
118
    VIVADO_OFFSET: "xilinx/vivado/Vivado/$VIVADO_VERSION/"
119
120
121
122
123
  <<: *import-definition

import-2017.1:
  variables:
    VIVADO_VERSION: "2017.1"
124
    VIVADO_OFFSET: "xilinx/vivado/Vivado/$VIVADO_VERSION/"
125
126
  <<: *import-definition

Jens Korinth's avatar
Jens Korinth committed
127
128
.compose-template: &compose-definition
  stage: compose
Jaco Hofmann's avatar
Jaco Hofmann committed
129
130
131
132
  cache:
      untracked: true
      key: "$CI_COMMIT_SHA-$CI_COMMIT_REF_NAME"
      policy: pull
133
  script:
Jaco Hofmann's avatar
Jaco Hofmann committed
134
    - source /opt/cad/$VIVADO_OFFSET/settings64.sh
Jaco Hofmann's avatar
Jaco Hofmann committed
135
    - |
Jaco Hofmann's avatar
Jaco Hofmann committed
136
      if [ ! -d ".ivy2" ]; then
Jaco Hofmann's avatar
Jaco Hofmann committed
137
138
139
        echo "Cache not available"
        sbt assembly
      fi
140
    - tapasco -v compose [arraysum x 1, arrayupdate x 1] @ 100 MHz
141

Jens Korinth's avatar
Jens Korinth committed
142
compose-2017.4:
143
  dependencies:
144
    - hls-2017.4
145
146
  variables:
    VIVADO_VERSION: "2017.4"
147
    VIVADO_OFFSET: "xilinx/vivado/Vivado/$VIVADO_VERSION/"
Jens Korinth's avatar
Jens Korinth committed
148
  <<: *compose-definition
149

Jens Korinth's avatar
Jens Korinth committed
150
compose-2017.3:
151
  dependencies:
152
    - hls-2017.3
153
154
  variables:
    VIVADO_VERSION: "2017.3"
155
    VIVADO_OFFSET: "xilinx/vivado/Vivado/$VIVADO_VERSION/"
Jens Korinth's avatar
Jens Korinth committed
156
  <<: *compose-definition
157

Jens Korinth's avatar
Jens Korinth committed
158
compose-2017.2:
159
  dependencies:
Jaco Hofmann's avatar
Jaco Hofmann committed
160
    - hls-2017.2
161
162
  variables:
    VIVADO_VERSION: "2017.2"
163
    VIVADO_OFFSET: "xilinx/vivado/Vivado/$VIVADO_VERSION/"
Jens Korinth's avatar
Jens Korinth committed
164
  <<: *compose-definition
165

Jens Korinth's avatar
Jens Korinth committed
166
compose-2017.1:
167
  dependencies:
168
    - hls-2017.1
169
170
  variables:
    VIVADO_VERSION: "2017.1"
171
    VIVADO_OFFSET: "xilinx/vivado/Vivado/$VIVADO_VERSION/"
Jens Korinth's avatar
Jens Korinth committed
172
  <<: *compose-definition