forked from openpbs/openpbs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
48 lines (46 loc) · 1.73 KB
/
azure-pipelines.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
pr:
- master
- release_*
pool:
vmImage: 'ubuntu-18.04'
jobs:
- job: runcheck
steps:
- bash: |
sudo apt-get install -y pep8
.github/runchecks
- job:
dependsOn: runcheck
strategy:
matrix:
"CentOS 8":
OS_TYPE: "centos:8"
PKG_INSTALL_CMD: "yum -y install python3"
DOCKER_EXTRA_ARG: ""
CI_CMD: "./ci --local"
"OpenSuse 15":
OS_TYPE: "opensuse/leap:15"
PKG_INSTALL_CMD: "zypper -n install python3"
DOCKER_EXTRA_ARG: "-e LC_ALL=C.utf8"
CI_CMD: "./ci --local"
"Ubuntu 20.04":
OS_TYPE: "ubuntu:20.04"
PKG_INSTALL_CMD: "apt-get -y update ; apt-get -y upgrade ; apt-get install -y python3"
DOCKER_EXTRA_ARG: "-e DEBIAN_FRONTEND=noninteractive -e LANGUAGE=C.UTF-8 -e LANG=C.UTF-8 -e LC_ALL=C.UTF-8"
CI_CMD: "./ci --local"
"CentOS 7 Sanitize":
OS_TYPE: "centos:7"
PKG_INSTALL_CMD: "yum -y install python3"
DOCKER_EXTRA_ARG: "-e BUILD_MODE=sanitize -e LC_ALL=en_US.utf-8 -e LANG=en_US.utf-8"
CI_CMD: "./ci --local='sanitize'"
"CentOS 7 Kerberos":
OS_TYPE: "centos:7"
PKG_INSTALL_CMD: "yum -y install python3"
DOCKER_EXTRA_ARG: "-e BUILD_MODE=kerberos -e LC_ALL=en_US.utf-8 -e LANG=en_US.utf-8"
CI_CMD: "./ci --local"
steps:
- script: |
docker pull $(OS_TYPE)
docker run -it $(DOCKER_EXTRA_ARG) -d -h pbs.dev.local --name pbsdev -v $(pwd):$(pwd) --privileged -w $(pwd) $(OS_TYPE) /bin/bash
docker exec pbsdev bash -c "$(PKG_INSTALL_CMD)"
docker exec --privileged pbsdev bash -c "pwd ; cd ci ;$(CI_CMD)"