-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
44 lines (39 loc) · 1.24 KB
/
.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
44
image: alpine:edge
variables:
GIT_SUBMODULE_STRATEGY: recursive
cache:
key: $CI_COMMIT_REF_SLUG
paths:
- vp/build
default:
before_script:
- apk update && apk add --no-cache build-base git boost-dev cmake git gdb-multiarch newlib-riscv-none-elf valgrind
- mkdir -p /tmp/toolchain
- ln -s $(command -v riscv-none-elf-gcc) /tmp/toolchain/riscv32-unknown-elf-gcc
- ln -s $(command -v riscv-none-elf-g++) /tmp/toolchain/riscv32-unknown-elf-g++
- ln -s $(command -v riscv-none-elf-as) /tmp/toolchain/riscv32-unknown-elf-as
- ln -s $(command -v riscv-none-elf-ld) /tmp/toolchain/riscv32-unknown-elf-ld
- ln -s $(command -v riscv-none-elf-gcc) /tmp/toolchain/riscv64-unknown-elf-gcc
- ln -s $(command -v riscv-none-elf-g++) /tmp/toolchain/riscv64-unknown-elf-g++
- ln -s $(command -v riscv-none-elf-as) /tmp/toolchain/riscv64-unknown-elf-as
- ln -s $(command -v riscv-none-elf-ld) /tmp/toolchain/riscv64-unknown-elf-ld
- export PATH="$PATH:/tmp/toolchain"
build-vp:
stage: build
script:
- make
artifacts:
paths:
- vp/build/bin
expire_in: 24h
only:
- master
- merge_requests
test-vp:
stage: test
script:
- cd vp/build
- ctest -V
only:
- master
- merge_requests