Commit 4af3e6d6 authored by Alexandre Delanoë's avatar Alexandre Delanoë

[CI] config.

parent 7dc3578e
# This file is a template, and might need editing before it works on your project. # Thanks to:
# see https://docs.gitlab.com/ce/ci/yaml/README.html for all available options # https://vadosware.io/post/zero-to-continuous-integrated-testing-a-haskell-project-with-gitlab/
#
#
image: haskell:8
variables:
STACK_ROOT: "${CI_PROJECT_DIR}/.stack"
STACK_OPTS: "--system-ghc"
# you can delete this line if you're not using Docker cache:
#image: busybox:latest paths:
- .stack
- .stack-work
- target
before_script: #before_script:
- echo "Before script section" #- apt-get update
- echo "For example you might run an update here or install a build dependency" #- apt-get install make xz-utils
- echo "Or perhaps you might print out some debugging details"
after_script: stages:
- echo "After script section" - build
- echo "For example you might do some cleanup here" - test
build1: build:
stage: build stage: build
script: script:
- ./install - make setup
- make build
#test1: # TOOO
#unit-test:
# stage: test
# script:
# - make test-unit
#
#int-test:
# stage: test # stage: test
# script: # script:
# - echo "Do a test here" # - make test-int
# - echo "For example run a test suite"
# #
#test2: #e2e-test:
# stage: test # stage: test
# script: # script:
# - echo "Do another parallel test here" # - make test-e2e
# - echo "For example run a lint test"
# #
#deploy1:
# stage: deploy # If you find yourself with a non-sensical build error when you know your project should be building just fine, this fragment should help:
#
#build:
# stage: build
# script: # script:
# - echo "Do your deploy here" # # Clear out cache files
# - rm -rf .stack
# - rm -rf .stack-work
# - stack setup --system-ghc
# - stack install --local-bin-path target --system-ghc
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment