This repository has been archived by the owner on Sep 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
79 lines (71 loc) · 2.05 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
variables:
NVIMHOST_LOG_FILE: "/tmp/nvimhost_log.txt"
NVIM_LISTEN_ADDRESS: "/tmp/nvim_test_addr"
stages:
- build
- test
# ./Dockerfile.nvim, inherents from dlang2/ldc-ubuntu:1.13.0
image: registry.gitlab.com/viniarck/nvimhost-d/ldc-ubuntu:1.13.0
ldc-build:
stage: build
script:
- ldc2 --version
- dub build --build=release --compiler=ldc2 --arch=x86_64
- dub build --build=release --compiler=ldc2 --arch=x86_64 --config=demoaltfile
- dub build --build=release --compiler=ldc2 --arch=x86_64 --config=demoplugin
- dub build --build=release --compiler=ldc2 --arch=x86_64 --config=nvimclient
- cp ./bin/demo-plugin /usr/local/bin
- which demo-plugin
only:
changes:
- source/**/*
- system_tests/**
artifacts:
paths:
- ./bin
ldc-unit-tests:
stage: test
only:
changes:
- source/**/*
- system_tests/**
script:
- dub test --build=release --compiler=ldc2 --arch=x86_64
ldc-system-tests:
stage: test
only:
changes:
- source/**/*
- system_tests/**
script:
- nvim --version
- cp ./bin/altfile-plugin /usr/local/bin
- cp ./bin/demo-plugin /usr/local/bin
- cp ./bin/nvim-client /usr/local/bin
- which demo-plugin
- pip3 install -r requirements-dev.txt
- python3 -m pytest -s -vv system_tests/test_demo_plugin_bootstrap.py --tb=short
- python3 -m pytest -s -vv system_tests/test_demo_plugin_functions.py --tb=short
## dmd compiler
dmd-build:
image: dlang2/dmd-ubuntu:2.084.0
stage: build
only:
changes:
- source/**/*
- system_tests/**
script:
- dmd --version
- dub build --build=release --arch=x86_64
- dub build --build=release --compiler=dmd --arch=x86_64 --config=demoaltfile
- dub build --build=release --compiler=dmd --arch=x86_64 --config=demoplugin
- dub build --build=release --compiler=dmd --arch=x86_64 --config=nvimclient
dmd-unit-tests:
image: dlang2/dmd-ubuntu:2.084.0
stage: test
only:
changes:
- source/**/*
- system_tests/**
script:
- dub test --build=release --arch=x86_64