-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
61 lines (50 loc) · 1.28 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
image: "rust:latest"
stages:
- build
- test
before_script:
# install dependencies
- apt-get update -yqq
- apt-get install -yqq --no-install-recommends build-essential
- apt-get install -yqq check libssl-dev imagemagick-common
# generate test data
- ./gen_test_img.sh
- ./cp_test_files.sh
# /mangofmt
mangofmt-build:
stage: build
script:
- rustc --version && cargo --version # Print version info for debugging
- cd mangofmt
- cargo build --all-features
mangofmt-test:
stage: test
script:
- rustc --version && cargo --version # Print version info for debugging
- cd mangofmt
- cargo test --all-features --all --verbose
# /libmango
libmango-build:
stage: build
script:
- cd libmango
- make build
libmango-test:
stage: test
script:
- cd libmango
- echo "compile test"
- make test/run_tests
- echo "run tests"
- make test FEATURES="gzip, aes"
# run the tests by hand to make sure that they are run
# for some odd reason it doesn't run always
- ./test/run_tests
# /pymango
pymango-test:
stage: test
script:
- apt install -yqq python3 python3-pip
- pip3 install pytest pytest pytest-xdist
- cd pymangofmt
- make test