forked from seleznevae/libfort
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
84 lines (73 loc) · 2.08 KB
/
.drone.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
83
84
---
# NOTE: there were some problems when we just used `alpine` image so we pinned the exaxt
# version. Consider returning to just `alpine` image when it will be fixed.
kind: pipeline
name: test-on-amd64
platform:
arch: amd64
steps:
- name: test
image: alpine:3.12.3
commands:
- apk add gcc g++ cmake make binutils-gold
- ls
- uname -a
- mkdir -p build
- cd build
- cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_STANDARD=99 -DCMAKE_CXX_STANDARD=11 -DCMAKE_C_FLAGS="-Werror" -DCMAKE_CXX_FLAGS="-Werror"
- cmake --build . --target all
- ls
- ctest -VV
- name: test-tcc-compiler
image: alpine:3.12.3
commands:
- apk add gcc g++ cmake make binutils-gold
# tcc available only in in edge alpine repo
- echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
- apk add tcc
- ls
- uname -a
- mkdir -p build
- cd build
# Tests with wchar don't pass
- cmake .. -DCMAKE_C_COMPILER=/usr/bin/tcc -DFORT_ENABLE_WCHAR=OFF
- cmake --build . --target libfort_test_dev
- ./tests/libfort_test_dev
- cmake --build . --target libfort_test
- ./tests/libfort_test
---
kind: pipeline
name: test-on-arm
platform:
arch: arm
steps:
- name: test
image: alpine:3.12.3
commands:
- apk add gcc g++ cmake make binutils-gold
- ls
- uname -a
- mkdir -p build
- cd build
- cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_STANDARD=99 -DCMAKE_CXX_STANDARD=11 -DCMAKE_C_FLAGS="-Werror" -DCMAKE_CXX_FLAGS="-Werror"
- cmake --build . --target all
- ls
- ctest -VV
---
kind: pipeline
name: test-on-arm64
platform:
arch: arm64
steps:
- name: test
image: alpine:3.12.3
commands:
- apk add gcc g++ cmake make binutils-gold
- ls
- uname -a
- mkdir -p build
- cd build
- cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_STANDARD=99 -DCMAKE_CXX_STANDARD=11 -DCMAKE_C_FLAGS="-Werror" -DCMAKE_CXX_FLAGS="-Werror"
- cmake --build . --target all
- ls
- ctest -VV