aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoris2017-05-08 21:15:01 +0200
committerJoris2017-05-08 21:15:01 +0200
commit6d35b2e155cb29925602d9718052d5ce03e9e764 (patch)
tree86f07c5047e2765b28e0d6b1fe36e34f232b2c7c
parent14433a928f7fdf9be3193812cbbed1a5ae49ecd7 (diff)
downloadcooking-6d35b2e155cb29925602d9718052d5ce03e9e764.tar.gz
cooking-6d35b2e155cb29925602d9718052d5ce03e9e764.tar.bz2
cooking-6d35b2e155cb29925602d9718052d5ce03e9e764.zip
Add purescript installation to ci
-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: