forked from openpbs/openpbs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
32 lines (32 loc) · 1.13 KB
/
.travis.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
language: c
sudo: required
dist: trusty
addons:
apt:
packages:
- docker-ce
- pep8
services:
- docker
env:
- OS_TYPE=centos:7
- OS_TYPE=opensuse/leap:15
- OS_TYPE=ubuntu:18.04
- OS_TYPE=debian:9
- OS_TYPE=centos:7 BUILD_MODE=_sanitize
before_install:
- .github/runchecks
- export OS_TYPE_FILE=${OS_TYPE////_}
- export OS_TYPE_FILE=${OS_TYPE_FILE//./_}
- export OS_TYPE_FILE=${OS_TYPE_FILE//:/_}${BUILD_MODE}
- docker pull ${OS_TYPE}
- '[ "${OS_TYPE}" == "ubuntu:18.04" -o "${OS_TYPE}" == "debian:9" ] && export DOCKER_EXTRA_ARG="-e DEBIAN_FRONTEND=noninteractive" || true'
- docker run -it -d -h testdev.pbspro.org --name testdev -v $(pwd):$(pwd) --privileged -w $(pwd) ${DOCKER_EXTRA_ARG} ${OS_TYPE} /bin/bash
- docker ps -a
- export DOCKER_EXEC="docker exec -it ${DOCKER_EXTRA_ARG} --privileged testdev"
install:
- ./.travis/${OS_TYPE_FILE}.sh
- docker exec -it -w $(pwd)/test/fw testdev pip install -r requirements.txt .
- docker exec -it testdev pbs_config --make-ug
- docker exec -it -w $(pwd)/test/tests testdev pbs_benchpress --tags=smoke
script: true