From 5f1d688852de06e2c0c9de9454852340fd58af54 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20tom=20W=C3=B6rden?= <henrik@trineo.org>
Date: Fri, 24 May 2019 15:50:34 +0200
Subject: [PATCH] test

---
 .gitlab-ci.yml | 92 +++++++-------------------------------------------
 1 file changed, 13 insertions(+), 79 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index abe134e..1514ff3 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -21,83 +21,17 @@
 #
 # ** end header
 #
-stages:
-    - before_script
-    - setup_docker
-    - setup
-    - code_style
-    - build
-    - test
-    
 before_script:
-   - docker info
-
-#########
-# Setup
-#########
-
-# install formatters
-setup:install_formatters:python2.7:
-    tags: [ py27 ]
-    stage: setup
-    script:
-        - pip2 install --upgrade pycodestyle --user
-
-setup:install_formatters:python3.4:
-    tags: [ py34 ]
-    stage: setup
-    script:
-        - pip3.4 install --upgrade pycodestyle --user
-
-############
-# code_style
-############
-
-code_style:pycodestyle:python2.7:
-    tags: [ py27 ]
-    stage: code_style
-    script:
-        - ~/.local/bin/pycodestyle --count ./
-
-code_style:pycodestyle:python3.4:
-    tags: [ py34 ]
-    stage: code_style
-    script:
-        - ~/.local/bin/pycodestyle --count ./
-
-#########
-# Build
-#########
-
-# install python client (python 2.7)
-build:pycaosdb:python2.7:
-    tags: [ py27 ]
-    stage: build
-    script:
-        - python2.7 setup.py install --user
-
-# install python client (python 3.4)
-build:pycaosdb:python3.4:
-    tags: [ py34 ]
-    stage: build
-    script:
-        - python3.4 setup.py install --user
-
-########
-# Test
-########
-
-# unit tests for pycaosdb
-test:pycaosdb:py34:
-    tags: [ py34 ]
-    stage: test
-    script:
-        - touch ~/.pycaosdb.ini
-        - tox -r -e py34
-
-test:pycaosdb:py27:
-    tags: [ py27 ]
-    stage: test
-    script:
-        - touch ~/.pycaosdb.ini
-        - tox -r -e py27
+  - apt-get update -qq && apt-get install -y -qq sqlite3 libsqlite3-dev nodejs
+  - ruby -v
+  - which ruby
+  - gem install bundler --no-document
+  - bundle install --jobs $(nproc)  "${FLAGS[@]}"
+
+rspec:
+  script:
+    - bundle exec rspec
+
+rubocop:
+  script:
+    - bundle exec rubocop
-- 
GitLab