.gitlab-ci.yml 3.7 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
11
12
  - ls
  - echo $SHELL
  - echo $PWD
  - source $PWD/setup.sh
  - export _JAVA_OPTIONS="-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
33
34
35
  script:
    - sbt assembly
    - cd $TAPASCO_HOME/common/ip/tapasco_status && ./chiselSetup.sh

Jens Korinth's avatar
Jens Korinth committed
36
37
.hls-template: &hls-definition
  stage: hls
38
39
  dependencies:
    - sbt-prepare
Jaco Hofmann's avatar
Jaco Hofmann committed
40
  cache:
41
      untracked: true
Jaco Hofmann's avatar
Jaco Hofmann committed
42
43
      key: "$CI_COMMIT_SHA-$CI_COMMIT_REF_NAME"
      policy: pull
Jens Korinth's avatar
Jens Korinth committed
44
  script:
Jaco Hofmann's avatar
Jaco Hofmann committed
45
    - source /opt/cad/$VIVADO_OFFSET/settings64.sh
46
    - vivado -version
Jaco Hofmann's avatar
Jaco Hofmann committed
47
    - |
Jaco Hofmann's avatar
Jaco Hofmann committed
48
      if [ ! -d ".ivy2" ]; then
Jaco Hofmann's avatar
Jaco Hofmann committed
49
50
51
        echo "Cache not available"
        sbt assembly
      fi
Jaco Hofmann's avatar
Jaco Hofmann committed
52
    - tapasco -v hls arraysum, arrayupdate
Jens Korinth's avatar
Jens Korinth committed
53
54
55
56

hls-2017.4:
  variables:
    VIVADO_VERSION: "2017.4"
57
    VIVADO_OFFSET: "xilinx/vivado/Vivado/$VIVADO_VERSION/"
Jens Korinth's avatar
Jens Korinth committed
58
59
60
61
62
  <<: *hls-definition

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

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

hls-2017.1:
  variables:
    VIVADO_VERSION: "2017.1"
75
    VIVADO_OFFSET: "xilinx/vivado/Vivado/$VIVADO_VERSION/"
Jens Korinth's avatar
Jens Korinth committed
76
77
  <<: *hls-definition

78
79
.import-template: &import-definition
  stage: import
80
81
  dependencies:
    - sbt-prepare
Jaco Hofmann's avatar
Jaco Hofmann committed
82
83
84
85
  cache:
      untracked: true
      key: "$CI_COMMIT_SHA-$CI_COMMIT_REF_NAME"
      policy: pull
86
  script:
Jaco Hofmann's avatar
Jaco Hofmann committed
87
    - source /opt/cad/$VIVADO_OFFSET/settings64.sh
Jaco Hofmann's avatar
Jaco Hofmann committed
88
    - |
Jaco Hofmann's avatar
Jaco Hofmann committed
89
      if [ ! -d ".ivy2" ]; then
Jaco Hofmann's avatar
Jaco Hofmann committed
90
91
92
        echo "Cache not available"
        sbt assembly
      fi
93
94
95
96
97
98
    - 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"
99
    VIVADO_OFFSET: "xilinx/vivado/Vivado/$VIVADO_VERSION/"
100
101
102
103
104
  <<: *import-definition

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

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

import-2017.1:
  variables:
    VIVADO_VERSION: "2017.1"
117
    VIVADO_OFFSET: "xilinx/vivado/Vivado/$VIVADO_VERSION/"
118
119
  <<: *import-definition

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

Jens Korinth's avatar
Jens Korinth committed
135
compose-2017.4:
136
  dependencies:
137
    - hls-2017.4
138
139
  variables:
    VIVADO_VERSION: "2017.4"
140
    VIVADO_OFFSET: "xilinx/vivado/Vivado/$VIVADO_VERSION/"
Jens Korinth's avatar
Jens Korinth committed
141
  <<: *compose-definition
142

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

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

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