I managed to find how to do it:
- create
.gitlab-ci.yml
at the root of the repository:
image: node:4.2.2
app:
cache:
paths:
- node_modules/
stage: deploy
script:
- npm install -g elm
- elm make --yes src/Main.elm --output=public/script.js
artifacts:
paths:
- public
only:
- master
I suppose the entry point is src/Main.elm
- Create
public/index.html
:
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>My title</title>
<script type="text/javascript" src="script.js"></script>
</head>
<body>
</body>
<script type="text/javascript">
Elm.Main.fullscreen();
</script>
</html>