aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml50
1 files changed, 31 insertions, 19 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8432de6..26fcb23 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,28 +1,40 @@
-image: haskell:latest
+cache:
+ paths:
+ - node_modules
+ - output
+ - bower_components
+ - _cache
+ - .stack
-before_script:
- - apt-get update && apt-get install xz-utils make
- - export STACK_ROOT=`pwd`/.stack
- - stack setup
- - stack install --only-dependencies
- - stack build
+stages:
+ - install_purescript
+ - prepare_site
+ - pages
-build:
- cache:
- paths:
- - _cache
- - .stack
+install_purescript:
+ image: node:latest
+ stage: install_purescript
script:
- - stack exec cooking build
- except:
- - master
+ - npm install bower
+ - npm install purescript
+ - npm install pulp
+ - export PATH=node_modules/.bin:$PATH;
+ - bower install --allow-root
+
+prepare_site:
+ image: haskell:latest
+ stage: prepare_site
+ script:
+ - apt-get update && apt-get install xz-utils make
+ - export STACK_ROOT=`pwd`/.stack
+ - stack setup
+ - stack install --only-dependencies
pages:
- cache:
- paths:
- - _cache
- - .stack
+ image: haskell:latest
+ stage: pages
script:
+ - stack build
- stack exec cooking build
artifacts:
paths: