Skip to content

Commit

Permalink
Add .travis.yml to test podman deb package on Ubuntu with Travis CI.
Browse files Browse the repository at this point in the history
Signed-off-by: Jun Aruga <[email protected]>
  • Loading branch information
junaruga committed Oct 1, 2019
1 parent 049aafa commit d758f61
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 1 deletion.
64 changes: 64 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
dist: xenial
os: linux
language: bash
# Installing Dependencies
# https://docs.travis-ci.com/user/installing-dependencies/
addons:
apt:
update: true
sources:
# To install podman.
# https://github.com/containers/libpod/blob/master/install.md
- sourceline: "ppa:projectatomic/ppa"
packages:
- podman
before_install:
# Show version and info.
- podman --version
- podman version
- podman info --debug
# Show deb package info.
- apt-cache show podman
- dpkg-query -L podman
- apt-cache show containers-common
- dpkg-query -L containers-common

# Create a configuration file /etc/containers/registries.conf,
# as it does not exist.
# Incompatibilities of podman from docker on Travis CI
# https://github.com/containers/libpod/issues/3679
- mkdir -p /etc/containers
- echo -e "[registries.search]\nregistries = ['docker.io']" | sudo tee /etc/containers/registries.conf
matrix:
include:
- name: "xenial rootless podman run"
script:
- podman run --rm -t fedora uname -m
- name: "xenial rootless podman build"
install:
- podman build --rm -t my-fedora -f Dockerfile.simple .
script:
- podman run --rm -t my-fedora uname -m
- name: "xenial root podman run"
script:
- sudo podman run --rm -t fedora uname -m
- name: "xenial root podman build"
install:
- sudo podman build --rm -t my-fedora -f Dockerfile.simple .
script:
- sudo podman run --rm -t my-fedora uname -m
- name: "bionic rootless podman build"
dist: bionic
install:
- podman build --rm -t my-fedora -f Dockerfile.simple .
script:
- podman run --rm -t my-fedora uname -m
- name: "bionic root podman build"
dist: bionic
install:
- sudo podman build --rm -t my-fedora -f Dockerfile.simple .
script:
- sudo podman run --rm -t my-fedora uname -m
allow_failures:
- name: "bionic root podman build"
fast_finish: true
3 changes: 3 additions & 0 deletions Dockerfile.simple
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ARG BASE_IMAGE=fedora:30
FROM ${BASE_IMAGE}
RUN uname -m
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Libpod provides a library for applications looking to use the Container Pod conc
popularized by Kubernetes. Libpod also contains the Pod Manager tool `(Podman)`. Podman manages pods, containers, container images, and container volumes.

* [Latest Version: 1.5.1](https://github.com/containers/libpod/releases/latest)
* [Continuous Integration:](contrib/cirrus/README.md) [![Build Status](https://api.cirrus-ci.com/github/containers/libpod.svg)](https://cirrus-ci.com/github/containers/libpod/master)
* [Continuous Integration:](contrib/cirrus/README.md) [![Build Status](https://api.cirrus-ci.com/github/containers/libpod.svg)](https://cirrus-ci.com/github/containers/libpod/master), [![Build Status](https://travis-ci.org/containers/libpod.svg?branch=master)](https://travis-ci.org/containers/libpod)
* [GoDoc: ![GoDoc](https://godoc.org/github.com/containers/libpod/libpod?status.svg)](https://godoc.org/github.com/containers/libpod/libpod)
* Automated continuous release downloads (including remote-client):
* Master Branch: [https://storage.cloud.google.com/libpod-master-releases/](https://storage.cloud.google.com/libpod-master-releases/)
Expand Down

0 comments on commit d758f61

Please sign in to comment.