Skip to content

Commit 8e375f2

Browse files
committed
Fix Travis-CI tests.
1 parent 52e9ca4 commit 8e375f2

File tree

3 files changed

+21
-34
lines changed

3 files changed

+21
-34
lines changed

.travis.yml

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -21,38 +21,34 @@ matrix:
2121
os: linux
2222
- name: ppc64le Ubuntu 16.04.4 LTS Xenial
2323
os: linux-ppc64le
24-
- name: x86_64 CentOS 7.1810
25-
OS_NAME: centos
26-
OS_VERSION: 7.1810
27-
- name: x86_64 CentOS 7.1708
28-
OS_NAME: centos
29-
OS_VERSION: 7.1708
30-
- name: x86_64 CentOS 7.1611
31-
OS_NAME: centos
32-
OS_VERSION: 7.1611
24+
- name: x86_64 CentOS 7.6.1810
25+
env: OS_NAME=centos OS_VERSION=7.6.1810
26+
- name: x86_64 CentOS 7.4.1708
27+
env: OS_NAME=centos OS_VERSION=7.4.1708
28+
- name: x86_64 CentOS 7.3.1611
29+
env: OS_NAME=centos OS_VERSION=7.3.1611
3330
- name: x86_64 CentOS 6.10
34-
OS_NAME: centos
35-
OS_VERSION: 6.10
31+
env: OS_NAME=centos OS_VERSION=6.10
3632
- name: x86_64 CentOS 6.9
37-
OS_NAME: centos
38-
OS_VERSION: 6.9
33+
env: OS_NAME=centos OS_VERSION=6.9
3934
- name: x86_64 CentOS 6.8
40-
OS_NAME: centos
41-
OS_VERSION: 6.8
35+
env: OS_NAME=centos OS_VERSION=6.8
4236

4337

4438
install:
4539
- if [ -z "$OS_NAME" ]; then
46-
sudo m-a prepare;
40+
( set -x; sudo m-a prepare );
4741
else
48-
sudo docker pull ${OS_NAME}:${OS_VERSION};
49-
sudo docker build --no-cache --rm --file=travis/Dockerfile.${OS_NAME}-${OS_VERSION} --tag=${OS_NAME}-${OS_VERSION}:test .;
42+
( set -x;
43+
sudo docker pull ${OS_NAME}:${OS_VERSION};
44+
sudo docker build --no-cache --rm --file=travis/Dockerfile.${OS_NAME} --build-arg=OS_VERSION=${OS_VERSION} --tag=${OS_NAME}-${OS_VERSION}:test .;
45+
);
5046
fi
5147

5248
script:
5349
- if [ -z "$OS_NAME" ]; then
54-
./configure && make all && sudo make install;
50+
( set -x; ./configure && make all && sudo make install );
5551
else
56-
sudo docker run -v $PWD:$PWD -w $PWD ${OS_NAME}-${OS_VERSION}:test;
52+
( set -x; sudo docker run -v $PWD:$PWD -w $PWD ${OS_NAME}-${OS_VERSION}:test );
5753
fi
5854

travis/Dockerfile.centos-6 renamed to travis/Dockerfile.centos

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
FROM centos:6
1+
# https://hub.docker.com/_/centos/
2+
3+
ARG OS_VERSION
4+
5+
FROM centos:$OS_VERSION
26

37
RUN yum -y install \
48
gcc \

travis/Dockerfile.centos-7

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)