forked from openpbs/openpbs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
29 lines (28 loc) · 1.11 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
language: c
sudo: required
group: deprecated-2017Q2
services:
- docker
env:
- OS_TYPE=centos:7
- OS_TYPE=opensuse
- OS_TYPE=debian:8
- OS_TYPE=centos:7 BUILD_MODE=_debug
- OS_TYPE=centos:7 BUILD_MODE=_sanitize
before_install:
- .github/runchecks
- docker pull ${OS_TYPE}
- docker run -it -d -h testdev.pbspro.com --name testdev -v `pwd`:`pwd` --privileged -w `pwd` ${OS_TYPE} /bin/sh
- docker ps -a
- export DOCKER_EXEC_TTY="docker exec -it testdev"
- export DOCKER_EXEC="docker exec -i testdev"
- export DOCKER_TESTDEV_IP="$(docker inspect -f '{{ .NetworkSettings.IPAddress }}' testdev)"
- ${DOCKER_EXEC} /bin/sh -c "echo '${DOCKER_TESTDEV_IP} testdev' >> /etc/hosts"
- ${DOCKER_EXEC} cat /etc/hosts
install:
- ./.travis/${OS_TYPE//:/_}${BUILD_MODE}.sh
- '[ "x${BUILD_MODE}" == "x_debug" ] && exit 0 || true'
- ${DOCKER_EXEC} /bin/sh -c "cd test/fw; pip install -r requirements.txt ."
- ${DOCKER_EXEC_TTY} pbs_config --make-ug
- ${DOCKER_EXEC_TTY} /bin/sh -c "cd test/tests; pbs_benchpress -l INFOCLI2 -o ../../ptl.txt --tags=smoke"
script: true