git » libfiu » commit 4c8598a

test: Replace Travis with GitLab CI

author Alberto Bertogli
2021-04-19 22:23:14 UTC
committer Alberto Bertogli
2021-04-21 20:54:51 UTC
parent dd89eddcbe28822512a6236ffc0e0dbb680b7133

test: Replace Travis with GitLab CI

Travis is removing its free support for open source, so move to GitLab
CI for automated and regular tests.

.gitlab-ci.yml +21 -0
.travis.yml +0 -21
README.md +2 -0

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..3446c3f
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,21 @@
+# Configuration for the GitLab CI.
+
+image: gcc
+
+stages:
+  - test
+
+test:
+  stage: test
+  before_script:
+    - apt update
+    - apt -y install make coreutils python3-dev
+  script:
+    - make all
+    - make test
+  artifacts:
+    when: always
+    expire_in: 1 hour
+    paths:
+      - ./
+
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index a027dac..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,21 +0,0 @@
-# Configuration for https://travis-ci.org/
-
-dist: bionic
-
-language: c
-
-compiler:
-    - gcc
-    - clang
-
-addons:
-    apt:
-        packages:
-            - coreutils
-            - python-dev
-            - python3-dev
-
-script:
-    - make test
-
-
diff --git a/README.md b/README.md
index 25165c1..be15ca5 100644
--- a/README.md
+++ b/README.md
@@ -14,6 +14,8 @@ injection of failures.
 
 Python bindings are available in the `bindings/` directory.
 
+[![Gitlab CI status](https://gitlab.com/albertito/libfiu/badges/master/pipeline.svg)](https://gitlab.com/albertito/libfiu/pipelines)
+
 
 ## Documentation