.gitlab-ci.yml 3.44 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
25
  script:
    # Execute your project's tests
    - sbt clean test
26

27
28
sbt-prepare:
  stage: toolchain-test
Jaco Hofmann's avatar
Jaco Hofmann committed
29
  cache:
30
      untracked: true
Jaco Hofmann's avatar
Jaco Hofmann committed
31
      key: "$CI_COMMIT_SHA-$CI_COMMIT_REF_NAME"
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
Jaco Hofmann's avatar
Jaco Hofmann committed
46
    - sbt assembly
47
    - tapasco hls arraysum, arrayupdate
Jens Korinth's avatar
Jens Korinth committed
48
49
50
51

hls-2017.4:
  variables:
    VIVADO_VERSION: "2017.4"
52
    VIVADO_OFFSET: "xilinx/vivado/Vivado/$VIVADO_VERSION/"
Jens Korinth's avatar
Jens Korinth committed
53
54
55
56
57
  <<: *hls-definition

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

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

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

73
74
.import-template: &import-definition
  stage: import
75
76
  dependencies:
    - sbt-prepare
Jaco Hofmann's avatar
Jaco Hofmann committed
77
78
79
80
  cache:
      untracked: true
      key: "$CI_COMMIT_SHA-$CI_COMMIT_REF_NAME"
      policy: pull
81
  script:
Jaco Hofmann's avatar
Jaco Hofmann committed
82
    - source /opt/cad/$VIVADO_OFFSET/settings64.sh
Jaco Hofmann's avatar
Jaco Hofmann committed
83
    - sbt assembly
84
85
86
87
88
89
    - 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"
90
    VIVADO_OFFSET: "xilinx/vivado/Vivado/$VIVADO_VERSION/"
91
92
93
94
95
  <<: *import-definition

import-2017.3:
  variables:
    VIVADO_VERSION: "2017.3"
96
    VIVADO_OFFSET: "xilinx/vivado/Vivado/$VIVADO_VERSION/"
97
98
99
100
101
  <<: *import-definition

import-2017.2:
  variables:
    VIVADO_VERSION: "2017.2"
102
    VIVADO_OFFSET: "xilinx/vivado/Vivado/$VIVADO_VERSION/"
103
104
105
106
107
  <<: *import-definition

import-2017.1:
  variables:
    VIVADO_VERSION: "2017.1"
108
    VIVADO_OFFSET: "xilinx/vivado/Vivado/$VIVADO_VERSION/"
109
110
  <<: *import-definition

Jens Korinth's avatar
Jens Korinth committed
111
112
.compose-template: &compose-definition
  stage: compose
Jaco Hofmann's avatar
Jaco Hofmann committed
113
114
115
116
  cache:
      untracked: true
      key: "$CI_COMMIT_SHA-$CI_COMMIT_REF_NAME"
      policy: pull
117
  script:
Jaco Hofmann's avatar
Jaco Hofmann committed
118
    - source /opt/cad/$VIVADO_OFFSET/settings64.sh
Jaco Hofmann's avatar
Jaco Hofmann committed
119
    - sbt assembly
120
    - tapasco -v compose [arraysum x 1, arrayupdate x 1] @ 100 MHz
121

Jens Korinth's avatar
Jens Korinth committed
122
compose-2017.4:
123
  dependencies:
124
    - hls-2017.4
125
126
  variables:
    VIVADO_VERSION: "2017.4"
127
    VIVADO_OFFSET: "xilinx/vivado/Vivado/$VIVADO_VERSION/"
Jens Korinth's avatar
Jens Korinth committed
128
  <<: *compose-definition
129

Jens Korinth's avatar
Jens Korinth committed
130
compose-2017.3:
131
  dependencies:
132
    - hls-2017.3
133
134
  variables:
    VIVADO_VERSION: "2017.3"
135
    VIVADO_OFFSET: "xilinx/vivado/Vivado/$VIVADO_VERSION/"
Jens Korinth's avatar
Jens Korinth committed
136
  <<: *compose-definition
137

Jens Korinth's avatar
Jens Korinth committed
138
compose-2017.2:
139
  dependencies:
Jaco Hofmann's avatar
Jaco Hofmann committed
140
    - hls-2017.2
141
142
  variables:
    VIVADO_VERSION: "2017.2"
143
    VIVADO_OFFSET: "xilinx/vivado/Vivado/$VIVADO_VERSION/"
Jens Korinth's avatar
Jens Korinth committed
144
  <<: *compose-definition
145

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