-
Notifications
You must be signed in to change notification settings - Fork 5
/
.cirrus.yml
138 lines (137 loc) · 4.89 KB
/
.cirrus.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
task:
pip_cache:
folder: ~/.cache/pip
fingerprint_script: echo $CIRRUS_OS
matrix:
- container:
image: debian:10
matrix:
- env:
CC_LUA_BUILD: gcc
CC_LUA_BUILD_OPTIONS: --include-tests
- env:
CC_LUA_BUILD: gcc
CC_LUA_BUILD_OPTIONS: --include-tests --ltests
- env:
CC_LUA_BUILD: clang
CC_LUA_BUILD_OPTIONS: --include-tests
- env:
CC_LUA_BUILD: clang
CC_LUA_BUILD_OPTIONS: --include-tests --ltests
common_install_script:
- export RUNLEVEL=1
- apt-get update
- apt-get install -y dialog apt-utils lsb-release curl gnupg build-essential python3-pip software-properties-common libreadline7 libreadline-dev
- python3 -m pip install --upgrade pip
- python3 -m pip install --upgrade --requirement requirements.txt
clang_install_script: |
export RUNLEVEL=1
if [ "$CC_LUA_BUILD" == "clang" ]; then
curl -o llvm-snapshot.gpg.key https://apt.llvm.org/llvm-snapshot.gpg.key
cat llvm-snapshot.gpg.key
apt-key add llvm-snapshot.gpg.key
apt-get update
apt-add-repository "deb http://apt.llvm.org/buster/ llvm-toolchain-buster-11 main"
apt-get update
apt-get -y upgrade
apt-get install -y clang-11 lld-11
update-alternatives --install /usr/bin/clang clang /usr/bin/clang-11 100
fi
- container:
image: fedora:33
matrix:
- env:
CC_LUA_BUILD: gcc
CC_LUA_BUILD_OPTIONS: --include-tests
- env:
CC_LUA_BUILD: gcc
CC_LUA_BUILD_OPTIONS: --include-tests --ltests
- env:
CC_LUA_BUILD: clang
CC_LUA_BUILD_OPTIONS: --include-tests
- env:
CC_LUA_BUILD: clang
CC_LUA_BUILD_OPTIONS: --include-tests --ltests
common_install_script:
- export RUNLEVEL=1
- dnf -y update
- dnf -y install redhat-lsb-core python3-pip readline readline-devel
- python3 -m pip install --upgrade pip
- python3 -m pip install --upgrade --requirement requirements.txt
gcc_install_script: |
export RUNLEVEL=1
if [ "$CC_LUA_BUILD" == "gcc" ]; then
dnf -y install gcc
fi
clang_install_script: |
export RUNLEVEL=1
if [ "$CC_LUA_BUILD" == "clang" ]; then
dnf -y install clang
fi
- container:
image: ubuntu:focal
cpu: 4
matrix:
- env:
CC_LUA_BUILD: gcc
CC_LUA_BUILD_OPTIONS: --include-tests
- env:
CC_LUA_BUILD: gcc
CC_LUA_BUILD_OPTIONS: --include-tests --ltests
- env:
CC_LUA_BUILD: clang
CC_LUA_BUILD_OPTIONS: --include-tests
- env:
CC_LUA_BUILD: clang
CC_LUA_BUILD_OPTIONS: --include-tests --ltests
common_install_script:
- export RUNLEVEL=1
- export DEBIAN_FRONTEND=noninteractive
- apt-get update
- apt-get install -y apt-utils lsb-release curl gnupg dialog python3-pip build-essential software-properties-common libreadline8 libreadline-dev
- python3 -m pip install --upgrade pip
- python3 -m pip install --upgrade --requirement requirements.txt
clang_install_script: |
export RUNLEVEL=1
if [ "$CC_LUA_BUILD" == "clang" ]; then
apt-get install -y clang-10
update-alternatives --install /usr/bin/clang clang /usr/bin/clang-10 100
fi
- freebsd_instance:
image_family: freebsd-13-0
cpu: 4
matrix:
- env:
CC_LUA_BUILD: gcc
CC_LUA_BUILD_OPTIONS: --include-tests
- env:
CC_LUA_BUILD: gcc
CC_LUA_BUILD_OPTIONS: --include-tests --ltests
- env:
CC_LUA_BUILD: clang
CC_LUA_BUILD_OPTIONS: --include-tests
- env:
CC_LUA_BUILD: clang
CC_LUA_BUILD_OPTIONS: --include-tests --ltests
common_install_script:
- pkg update -f
- env ASSUME_ALWAYS_YES=YES pkg bootstrap -f
- env ASSUME_ALWAYS_YES=YES pkg upgrade pkg
- env ASSUME_ALWAYS_YES=YES pkg install bash
- python3 -m ensurepip --default-pip
- python3 -m pip install --upgrade pip
- python3 -m pip install --upgrade --requirement requirements.txt
gcc_install_script: |
if [ "$CC_LUA_BUILD" == "gcc" ]; then
env ASSUME_ALWAYS_YES=YES pkg install lang/gcc
fi
freebsd_setup_script:
- chsh -s /usr/local/bin/bash
version_script:
- python3 versions.py -t ${CC_LUA_BUILD}
build_script:
- python3 waf configure -v --check-c-compiler=${CC_LUA_BUILD} ${CC_LUA_BUILD_OPTIONS} build install
test_script:
- cd build/tests && lua -e"_U=true" all.lua
clean_script:
- python3 waf uninstall clean distclean