Skip to content

Commit

Permalink
Testing the CI
Browse files Browse the repository at this point in the history
Signed-off-by: Renaud Gaubert <rgaubert@nvidia.com>
  • Loading branch information
Renaud Gaubert committed Jun 29, 2020
1 parent d884147 commit f6c39df
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 23 deletions.
17 changes: 0 additions & 17 deletions .travis.yml
@@ -1,29 +1,12 @@
dist: bionic
language: go
go:
- 1.14.x
- 1.13.x
- tip
cache:
directories:
- /home/travis/.vagrant.d/boxes
matrix:
include:
- go: 1.14.x
name: "verify-dependencies"
script:
- make verify-dependencies
- go: 1.13.x
name: "cgroup-systemd"
env:
- RUNC_USE_SYSTEMD=1
script:
- make all
- sudo curl -o /usr/local/bin/umoci -fsSL https://github.com/opencontainers/umoci/releases/download/v0.4.5/umoci.amd64
- sudo chmod +x /usr/local/bin/umoci
- . /etc/os-release && sudo sh -c "echo 'deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/x${NAME}_${VERSION_ID}/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list" && wget -nv https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/x${NAME}_${VERSION_ID}/Release.key -O- | sudo apt-key add -
- sudo apt-get update -qq && sudo apt-get install skopeo
- sudo PATH="$PATH" make localintegration RUNC_USE_SYSTEMD=1
- name: "fedora32"
before_install:
- sudo ./script/install-vagrant.sh
Expand Down
12 changes: 6 additions & 6 deletions tests/integration/list.bats
Expand Up @@ -3,17 +3,17 @@
load helpers

function setup() {
teardown_running_container_inroot test_box1 $BUNDLE
teardown_running_container_inroot test_box2 $BUNDLE
teardown_running_container_inroot test_box3 $BUNDLE
teardown_running_container test_box1
teardown_running_container test_box2
teardown_running_container test_box3
teardown_container
setup_container
}

function teardown() {
teardown_running_container_inroot test_box1 $BUNDLE
teardown_running_container_inroot test_box2 $BUNDLE
teardown_running_container_inroot test_box3 $BUNDLE
teardown_running_container test_box1
teardown_running_container test_box2
teardown_running_container test_box3
teardown_container
}

Expand Down
5 changes: 5 additions & 0 deletions tests/integration/tty.bats
Expand Up @@ -151,6 +151,11 @@ EOF
# check the pid was generated
[ -e pid.txt ]

sleep 1
cat /tmp/tty-info
cat $BUNDLE/rootfs/tmp/tty-info
cat $BUNDLE/tmp/tty-info

#wait user process to finish
timeout 1 tail --pid=$(head -n 1 pid.txt) -f /dev/null

Expand Down

0 comments on commit f6c39df

Please sign in to comment.