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/
#
# you can delete this line if you're not using Docker #
#image: busybox:latest image: haskell:8
before_script: variables:
- echo "Before script section" STACK_ROOT: "${CI_PROJECT_DIR}/.stack"
- echo "For example you might run an update here or install a build dependency" STACK_OPTS: "--system-ghc"
- echo "Or perhaps you might print out some debugging details"
cache:
after_script: paths:
- echo "After script section" - .stack
- echo "For example you might do some cleanup here" - .stack-work
- target
build1:
#before_script:
#- apt-get update
#- apt-get install make xz-utils
stages:
- build
- test
build:
stage: build stage: build
script: script:
- ./install - make setup
- make build
#test1:
# TOOO
#unit-test:
# stage: test # stage: test
# script: # script:
# - echo "Do a test here" # - make test-unit
# - echo "For example run a test suite" #
# #int-test:
#test2:
# stage: test # stage: test
# script:
# - echo "Do another parallel test here"
# - echo "For example run a lint test"
#
#deploy1:
# stage: deploy
# script: # script:
# - echo "Do your deploy here" # - make test-int
#
#e2e-test:
# stage: test
# script:
# - make test-e2e
#
# 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:
# # 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