.gitlab-ci.yml 431 Bytes
Newer Older
Dag Brattli's avatar
Dag Brattli committed
1
image: fsharp:netcore
Dag Brattli's avatar
Dag Brattli committed
2 3 4 5 6 7

stages:
  - build
  - test

variables:
Dag Brattli's avatar
Dag Brattli committed
8
  project: "Source"
Dag Brattli's avatar
Dag Brattli committed
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
  tests: "Tests"

before_script:
  - "dotnet restore"

build:
  stage: build
  variables:
    build_path: "$project"
  script:
    - "cd $build_path"
    - "dotnet build"

test:
  stage: test
  variables:
    test_path: "$tests"
  script:
    - "cd $test_path"
Dag Brattli's avatar
Dag Brattli committed
28 29
    - "dotnet add package coverlet.msbuild"
    - "dotnet test /p:CollectCoverage=true"