Bladeren bron

ci build

merge-requests/1/head
soupi 1 jaar geleden
bovenliggende
commit
745d78e696
2 gewijzigde bestanden met toevoegingen van 39 en 0 verwijderingen
  1. +29
    -0
      .gitlab-ci.yml
  2. +10
    -0
      README.md

+ 29
- 0
.gitlab-ci.yml Bestand weergeven

@@ -0,0 +1,29 @@
# Using https://vadosware.io/post/zero-to-continuous-integrated-testing-a-haskell-project-with-gitlab/


variables:
STACK_ROOT: "${CI_PROJECT_DIR}/.stack"

cache:
paths:
- .stack
- .stack-work
- target

before_script:
- apt-get update
- apt-get install make xz-utils
- wget -qO- https://get.haskellstack.org/ | sh

stages:
- build

build:
stage: build
script:
- stack build --no-terminal
- cp .stack-work/install/*/*/*/bin/sharelinks-server ./sharelinks-server-linux
artifacts:
paths:
- sharelinks-server-linux
expire_in: 8 weeks

+ 10
- 0
README.md Bestand weergeven

@@ -7,3 +7,13 @@ It can also be configured to use http basic authorization using the `--username`

It uses a single json file as the database.
By default it wll write to `~/.local/postlink/db.json` but this is configurable with the `--json` flag.

## Build & Run

Prerequisites: [Stack](https://haskellstack.org) (Could probably also be built with [Cabal+GHC](https://www.haskell.org/downloads/) instead).

```sh
stack build && stack exec -- sharelinks-server
```

Will run the website on port 3000 and without http basic auth. For more configuration options run `--help`.

Laden…
Annuleren
Opslaan