forked from envmodules/modules
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.cirrus.yml
More file actions
192 lines (181 loc) · 6.59 KB
/
.cirrus.yml
File metadata and controls
192 lines (181 loc) · 6.59 KB
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
env:
MAKE: make
clone_template: &CLONE_TEMPLATE
# need to supersede Cirrus CI-specific git clone with a regular git client
clone_script: |
if [ "$CIRRUS_OS" = 'darwin' ]; then
brew install git
elif [ "$CIRRUS_OS" = 'freebsd' ]; then
pkg install -y git
elif [ -n "$(command -v zypper)" ]; then
zypper install -y git
elif [ -n "$(command -v apt-get)" ]; then
apt-get update
apt-get -y install git
else
yum install -y git
fi
if [ -z "$CIRRUS_PR" ]; then
git clone --depth=320 --branch=$CIRRUS_BRANCH https://x-access-token:${CIRRUS_REPO_CLONE_TOKEN}@github.com/${CIRRUS_REPO_FULL_NAME}.git $CIRRUS_WORKING_DIR
else
git clone --depth=320 https://x-access-token:${CIRRUS_REPO_CLONE_TOKEN}@github.com/${CIRRUS_REPO_FULL_NAME}.git $CIRRUS_WORKING_DIR
fi
cd $CIRRUS_WORKING_DIR
if [ -n "$CIRRUS_PR" ]; then
git fetch origin pull/$CIRRUS_PR/head:pull/$CIRRUS_PR
fi
git reset --hard $CIRRUS_CHANGE_IN_REPO
artifacts_template: &ARTIFACTS_TEMPLATE
always:
compatlog_artifacts:
path: compat/modules.log
type: text/plain
log_artifacts:
path: modules.log
type: text/plain
installlog_artifacts:
path: install.log
type: text/plain
build_install_test_template: &BUILD_INSTALL_TEST_TEMPLATE
build_script:
- $MAKE
test_script: |
if [ -n "$TEST_SPECIFIC_CONFIG" ]; then
$MAKE $TEST_SPECIFIC_CONFIG
fi
$MAKE test-deps
script/mt
if [ -n "$TEST_SPECIFIC_CONFIG" ]; then
$MAKE uninstall-testconfig
fi
install_script:
- $MAKE install
testinstall_script:
- script/mt install
uninstall_script:
- $MAKE uninstall
build_install_xvfbtest_template: &BUILD_INSTALL_XVBFTEST_TEMPLATE
build_script:
- $MAKE
test_script: |
if [ -n "$TEST_SPECIFIC_CONFIG" ]; then
$MAKE $TEST_SPECIFIC_CONFIG
fi
$MAKE test-deps
xvfb-run script/mt
if [ -n "$TEST_SPECIFIC_CONFIG" ]; then
$MAKE uninstall-testconfig
fi
install_script:
- $MAKE install
testinstall_script:
- xvfb-run script/mt install
uninstall_script:
- $MAKE uninstall
task:
<< : *CLONE_TEMPLATE
env:
MAKE: gmake
freebsd_instance:
matrix:
image_family: freebsd-11-3-snap
image_family: freebsd-12-1-snap
cpu: 1
memory: 2G
reqinstall_script: pkg install -y bash wget gmake dejagnu py37-sphinx tcl86 tcl-wrapper autoconf automake gettext ksh93 zsh fish perl5 python37 ruby cmake R readline
configure_script:
- ./configure --enable-compat-version --without-tclx --with-tcl-ver=8.6
<< : *BUILD_INSTALL_TEST_TEMPLATE
<< : *ARTIFACTS_TEMPLATE
task:
<< : *CLONE_TEMPLATE
env:
COVERAGE: y
osx_instance:
image: catalina-xcode
reqinstall_script: brew install md5sha1sum expect dejagnu grep fish r
configure_script:
# need to specify where to find tclConfig.sh on newer xcode release
- ./configure --prefix=/tmp/modules --with-loadedmodules=null:dot --with-tcl=/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tcl.framework/Versions/8.5
<< : *BUILD_INSTALL_TEST_TEMPLATE
coverage_script:
- script/nglfar2ccov modulecmd-test.tcl
- bash <(curl -s https://codecov.io/bash)
<< : *ARTIFACTS_TEMPLATE
task:
<< : *CLONE_TEMPLATE
# change dir to launch tests from path containing specific chars
env:
CIRRUS_WORKING_DIR: /tmp/modules-1.2.3+branch_name-91-g6dd3db49
DEBIAN_FRONTEND: noninteractive
LANGUAGE: C
LANG: C
LC_ALL: C
TEST_SPECIFIC_CONFIG: install-testmodspath-wild
container:
image: ubuntu:bionic
cpu: 1
memory: 2G
reqinstall_script: |
apt-get update
apt-get -y install wget expect-dev dejagnu python-sphinx bash tcsh ksh zsh fish tcl tcl8.6 perl python ruby cmake r-base-core
# libtclenvmodules and compatibility version build requirements
apt-get -y install gcc autoconf tcl8.6-dev
# compatibility version-specific build requirements
apt-get -y install automake autopoint
configure_script:
- ./configure --with-tclsh=tclsh8.6 --prefix /tmp/modules --enable-compat-version --with-tcl=/usr/lib/tcl8.6 --with-tcl-ver=8.6 --without-tclx --enable-append-manpath --enable-append-binpath --with-bin-search-path=/usr/bin:/bin --disable-silent-shell-debug-support --enable-windows-support --with-loadedmodules=null:dot --with-quarantine-vars=LD_LIBRARY_PATH --enable-color --with-dark-background-colors='hi=1:se=2:er=91:wa=93:mp=1;94:di=94:al=96:sy=95' --enable-foo FOO=bar
<< : *BUILD_INSTALL_TEST_TEMPLATE
<< : *ARTIFACTS_TEMPLATE
task:
<< : *CLONE_TEMPLATE
container:
matrix:
image: centos:centos7
image: centos:centos8
cpu: 1
memory: 2G
reqinstall_script: |
. /etc/os-release
if [ $VERSION_ID -eq 8 ]; then
sed -i 's|enabled=0|enabled=1|' /etc/yum.repos.d/CentOS-Linux-PowerTools.repo
fi
if [ $VERSION_ID -eq 8 ]; then
PYTHON_PKG='python36'
SPHINX_PKG='python3-sphinx'
TCLXDEV_PKG=''
else
PYTHON_PKG='python'
SPHINX_PKG='python-sphinx'
TCLXDEV_PKG='tclx-devel'
fi
yum install -y epel-release
yum install -y tcsh zsh ksh tcl perl $PYTHON_PKG ruby cmake R-core make wget perl $SPHINX_PKG git dejagnu man-db rpm-build bzip2 autoconf gcc tcl-devel
yum install -y which xorg-x11-server-utils xorg-x11-server-Xvfb automake gettext-devel libX11-devel $TCLXDEV_PKG
if [ $VERSION_ID -lt 8 ]; then
wget -O /etc/yum.repos.d/shells_fish_release_2.repo http://download.opensuse.org/repositories/shells:fish:release:2/CentOS_${VERSION_ID}/shells:fish:release:2.repo
fi
yum install -y fish
configure_script:
- ./configure --enable-compat-version --with-loadedmodules=null:dot --with-quarantine-vars='LD_LIBRARY_PATH LD_PRELOAD'
# also enable a display on this test case to validate x-resource behavior
<< : *BUILD_INSTALL_XVBFTEST_TEMPLATE
rpm_script:
- xvfb-run make srpm rpm
<< : *ARTIFACTS_TEMPLATE
task:
<< : *CLONE_TEMPLATE
container:
matrix:
image: opensuse/leap
cpu: 1
memory: 2G
reqinstall_script: |
zypper install -y tcsh zsh ksh fish tcl perl python ruby cmake R-core R-core-packages make wget python-Sphinx git dejagnu man net-tools autoconf gcc tcl-devel
zypper install -y which xrdb xvfb-run automake gettext-tools
configure_script:
- ./configure --enable-compat-version --enable-versioning --with-loadedmodules=null:dot --with-quarantine-vars='LD_LIBRARY_PATH LD_PRELOAD'
# also enable a display on this test case to validate x-resource behavior
<< : *BUILD_INSTALL_XVBFTEST_TEMPLATE
<< : *ARTIFACTS_TEMPLATE
# vim:set tabstop=2 shiftwidth=2 expandtab autoindent: