From 745208a0bf1603a4700e147f115cfb2b6fd09757 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Fri, 25 Dec 2020 08:50:43 +0200 Subject: [PATCH] Migrate from Travis to GitLab CI. --- .gitlab-ci.yml | 7 +++++++ .travis.yml | 14 -------------- README.md | 4 ++-- test.bats | 2 -- 4 files changed, 9 insertions(+), 18 deletions(-) create mode 100644 .gitlab-ci.yml delete mode 100644 .travis.yml mode change 100755 => 100644 test.bats diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..68a146f --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,7 @@ +--- +test: + image: alpine:3.12 + before_script: + - apk add --update docker bats + script: + - bats . diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 658db49..0000000 --- a/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ ---- -language: c -dist: trusty -sudo: false -group: beta -services: - - docker - -script: - - bats test.bats - -notifications: - email: false - on_failure: never diff --git a/README.md b/README.md index 15e2fcb..051faf1 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Docker runas test -[](https://travis-ci.org/adarnimrod/docker-runas-test) + [](https://git.shore.co.il/nimrod/docker-runas-test/-/commits/master) > A test suite for the runas Docker entrypoint. See [here](https://www.shore.co.il/blog/docker_uid/) for more info. @@ -25,4 +25,4 @@ This software is licensed under the MIT license (see `LICENSE.txt`). Nimrod Adar, [contact me](mailto:nimrod@shore.co.il) or visit my [website]( https://www.shore.co.il/). Patches are welcome via [`git send-email`]( http://git-scm.com/book/en/v2/Git-Commands-Email). The repository is located -at: <https://www.shore.co.il/git/>. +at: <https://git.shore.co.il/explore/>. diff --git a/test.bats b/test.bats old mode 100755 new mode 100644 index 7ca89e2..70ceaa9 --- a/test.bats +++ b/test.bats @@ -1,5 +1,3 @@ -#!/usr/bin/env bats - _test_root () { name="${1:-$BATS_TEST_DESCRIPTION}" tag="${2:-latest}" -- GitLab