Skip to content
Snippets Groups Projects
Commit 9f78b4cd authored by Hernandez-Courbevoie Yohan's avatar Hernandez-Courbevoie Yohan
Browse files

Add tests 2

parent b963ec93
Branches
No related tags found
No related merge requests found
default:
image: docker:24.0.5
services:
- docker:24.0.5-dind
before_script:
- docker info
variables:
DOCKER_TLS_CERTDIR: "/certs"
stages: stages:
- build - build
- test - test
...@@ -17,13 +7,12 @@ stages: ...@@ -17,13 +7,12 @@ stages:
build-job: build-job:
stage: build stage: build
script: script:
- apt install ruby
- gem install bundler
- sudo -u nobody -g nogroup bundle install
- apt install git
- git clone https://github.com/touzet/pampa.git - git clone https://github.com/touzet/pampa.git
- docker build -t pampa:web . - docker build -t pampa:web .
- docker run -dtp 80:80 pampa:web - docker run -dtp 80:80 pampa:web
tags:
- bws
...@@ -31,20 +20,28 @@ test-home: ...@@ -31,20 +20,28 @@ test-home:
stage: test stage: test
script: script:
- ruby tests/test_home.rb - ruby tests/test_home.rb
tags:
- bws
test-form: test-form:
stage: test stage: test
script: script:
- ruby tests/test_form.rb - ruby tests/test_form.rb
tags:
- bws
test-help: test-help:
stage: test stage: test
script: script:
- ruby tests/test_help.rb - ruby tests/test_help.rb
tags:
- bws
test-analysis: test-analysis:
stage: test stage: test
script: script:
- ruby tests/test_analysis.rb - ruby tests/test_analysis.rb
tags:
- bws
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment