Skip to content

Commit b6c3f2d

Browse files
sanjaymshpraiskup
authored andcommitted
travis: build also on ppc64le architecture
The -t flag is removed because it is not supported on ppc64le archictecture on travis and throws a error "The input device is not a TTY" Closes: #27
1 parent 0583051 commit b6c3f2d

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.travis.yml

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
arch:
2+
- amd64
3+
- ppc64le
14
services:
25
- docker
36
script: .travis/run-in-docker

.travis/run-in-docker

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
#! /bin/bash -x
22

3+
# we don't use the '-t' docker run flag because it is not supported on ppc64le
4+
# archictecture on Travis and throws an error "The input device is not a TTY"
5+
36
container_id=$(
4-
docker run -d -ti -v `pwd`:/workdir:Z -u $(id -u) registry.fedoraproject.org/fedora bash
5-
)
7+
docker run -d -i -v `pwd`:/workdir:Z -u $(id -u) registry.fedoraproject.org/fedora bash
8+
)
69

710
cleanup ()
811
{
@@ -18,7 +21,7 @@ run_in_container ()
1821
uid=0
1922
fi
2023

21-
docker exec -u $uid -ti "$container_id" "$@"
24+
docker exec -u $uid -i "$container_id" "$@"
2225
}
2326

2427
buildrequires='

0 commit comments

Comments
 (0)