.gitlab-ci.yml 1.91 KB
Newer Older
Jaco Hofmann's avatar
Jaco Hofmann committed
1
image: centos:7
2

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

6
7
before_script:
  # Enable the usage of sources over https
Jens Korinth's avatar
Fix    
Jens Korinth committed
8
  - uname -a
Jaco Hofmann's avatar
Jaco Hofmann committed
9
10
  - yum -y install java-1.8.0-openjdk unzip which zip boost gperftools-libs libX11 mpfr
  - yum -y groupinstall 'Development Tools'
11
12
  # Install SBT
  - curl -s "https://get.sdkman.io" | bash
Jaco Hofmann's avatar
Jaco Hofmann committed
13
  - source "/root/.sdkman/bin/sdkman-init.sh"
14
  - sdk install sbt
15
16
  # Log the sbt version and TaPaSCo version
  - sbt sbtVersion version
17

Jens Korinth's avatar
Jens Korinth committed
18
19
20
21
22
23
stages:
  - toolchain-test
  - hls
  - compose
  - dse

24
scala-test:
Jens Korinth's avatar
Jens Korinth committed
25
  stage: toolchain-test
26
27
  script:
    # Execute your project's tests
Jaco Hofmann's avatar
Jaco Hofmann committed
28
    - source setup.sh
29
    - sbt clean test
30

Jens Korinth's avatar
Jens Korinth committed
31
32
.hls-template: &hls-definition
  stage: hls
33
34
35
  artifacts:
      untracked: true
      expire_in: 1 hrs
Jens Korinth's avatar
Jens Korinth committed
36
37
38
39
  script:
    - source setup.sh
    - source /opt/cad/xilinx/vivado/Vivado/$VIVADO_VERSION/settings64.sh
    - sbt assembly
40
    - tapasco hls arraysum, arrayupdate
Jens Korinth's avatar
Jens Korinth committed
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63

hls-2017.4:
  variables:
    VIVADO_VERSION: "2017.4"
  <<: *hls-definition

hls-2017.3:
  variables:
    VIVADO_VERSION: "2017.3"
  <<: *hls-definition

hls-2017.2:
  variables:
    VIVADO_VERSION: "2017.2"
  <<: *hls-definition

hls-2017.1:
  variables:
    VIVADO_VERSION: "2017.1"
  <<: *hls-definition

.compose-template: &compose-definition
  stage: compose
64
65
66
  script:
    - source setup.sh
    - source /opt/cad/xilinx/vivado/Vivado/$VIVADO_VERSION/settings64.sh
Jens Korinth's avatar
Fix    
Jens Korinth committed
67
    - sbt assembly
Jens Korinth's avatar
Jens Korinth committed
68
    - tapasco compose [arraysum x 1, arrayupdate x 1] @ 100 MHz
69

Jens Korinth's avatar
Jens Korinth committed
70
compose-2017.4:
71
  dependencies:
Jaco Hofmann's avatar
Jaco Hofmann committed
72
      - hls-2017.4
73
74
  variables:
    VIVADO_VERSION: "2017.4"
Jens Korinth's avatar
Jens Korinth committed
75
  <<: *compose-definition
76

Jens Korinth's avatar
Jens Korinth committed
77
compose-2017.3:
78
  dependencies:
Jaco Hofmann's avatar
Jaco Hofmann committed
79
     - hls-2017.3
80
81
  variables:
    VIVADO_VERSION: "2017.3"
Jens Korinth's avatar
Jens Korinth committed
82
  <<: *compose-definition
83

Jens Korinth's avatar
Jens Korinth committed
84
compose-2017.2:
85
  dependencies:
Jaco Hofmann's avatar
Jaco Hofmann committed
86
    - hls-2017.2
87
88
  variables:
    VIVADO_VERSION: "2017.2"
Jens Korinth's avatar
Jens Korinth committed
89
  <<: *compose-definition
90

Jens Korinth's avatar
Jens Korinth committed
91
compose-2017.1:
92
  dependencies:
Jaco Hofmann's avatar
Jaco Hofmann committed
93
      - hls-2017.1
94
95
  variables:
    VIVADO_VERSION: "2017.1"
Jens Korinth's avatar
Jens Korinth committed
96
  <<: *compose-definition