-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
82 lines (68 loc) · 1.73 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
80
81
82
# Official language image. Look for the different tagged releases at:
# https://hub.docker.com/r/crystallang/crystal/
image: "crystallang/crystal:latest"
# Cache shards in between builds
cache:
paths:
- lib
- bin
before_script:
- crystal -v
- shards
spec:
script:
- crystal spec --error-on-warnings --junit_output=. spec/geode_spec.cr spec/extensions_spec.cr
artifacts:
when: always
paths:
- output.xml
reports:
junit: output.xml
spec angles:
extends: spec
script:
- crystal spec --error-on-warnings --junit_output=. spec/geode/angles/**
spec matrices:
extends: spec
script:
- crystal spec --error-on-warnings --junit_output=. spec/geode/matrices/matrix_spec.cr spec/geode/matrices/matrices_spec.cr
spec matrix 1/4:
extends: spec
script:
- crystal spec --error-on-warnings --junit_output=. spec/geode/matrices/matrix1*_spec.cr
spec matrix 2/4:
extends: spec
script:
- crystal spec --error-on-warnings --junit_output=. spec/geode/matrices/matrix2*_spec.cr
spec matrix 3/4:
extends: spec
script:
- crystal spec --error-on-warnings --junit_output=. spec/geode/matrices/matrix3*_spec.cr
spec matrix 4/4:
extends: spec
script:
- crystal spec --error-on-warnings --junit_output=. spec/geode/matrices/matrix4*_spec.cr
spec points:
extends: spec
script:
- crystal spec --error-on-warnings --junit_output=. spec/geode/points/**
spec vectors:
extends: spec
script:
- crystal spec --error-on-warnings --junit_output=. spec/geode/vectors/**
format:
script:
- crystal tool format --check
lint:
script:
- bin/ameba
pages:
stage: deploy
script:
- crystal docs
- mv docs/ public/
artifacts:
paths:
- public
only:
- master