forked from Bitarrays/42hs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
50 lines (41 loc) · 1.06 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
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache"
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- .cache/
- venv/
- 42sh
- builddir/
before_script:
- apk add build-base && apk add make && apk add meson && apk add ninja && apk add py3-pip && apk add dash
- make build
- pip3 install pyyaml
echo:
stage: test
script:
- python3 tests/moulinette.py --binary 42sh --tests tests/echo.yml
command_list:
stage: test
script:
- python3 tests/moulinette.py --binary 42sh --tests tests/command_list.yml
reserved_words:
stage: test
script:
- python3 tests/moulinette.py --binary 42sh --tests tests/reserved_words.yml
cd:
stage: test
script:
- python3 tests/moulinette.py --binary 42sh --tests tests/cd.yml
expansion:
stage: test
script:
- python3 tests/moulinette.py --binary 42sh --tests tests/expansion.yml
for:
stage: test
script:
- python3 tests/moulinette.py --binary 42sh --tests tests/for.yml
wrong_commands:
stage: test
script:
- python3 tests/moulinette.py --binary 42sh --tests tests/wrong_commands.yml