forked from fixstars/Halide-elements
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
43 lines (39 loc) · 917 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
variables:
GO_DIR: /home/gitlab-runner/go
GENESIS_DIR: $CI_PROJECT_DIR/genesis/genesis
VIVADO_HLS_PATH: /opt/Xilinx/Vivado/2018.2
stages:
- build-genesis
- test
cache:
paths:
- genesis/
build-genesis:linux:
stage: build-genesis
tags:
- cad1
- shell
script:
- export PATH=/usr/local/go/bin:$PATH
- export GOPATH=$GO_DIR
- if [ ! -d genesis ]; then GIT_LFS_SKIP_SMUDGE=1 git clone --recursive ssh://git@gitlab.fixstars.com:/GENESIS/genesis.git; fi
- cd genesis
- git fetch
- git checkout $(git describe --tags --abbrev=0)
- git submodule update
- ./build.sh
- ln -sfn genesis-$(git describe --tags)-linux genesis
except:
- /^feature\/wip-.*/
test:linux:
stage: test
tags:
- cad1
- shell
script:
- export HALIDE_ROOT=$GENESIS_DIR
- ./testall.sh
dependencies:
- build-genesis:linux
except:
- /^feature\/wip-.*/