diff options
author | Joris | 2017-05-09 11:56:22 +0200 |
---|---|---|
committer | Joris | 2017-05-09 11:56:22 +0200 |
commit | b39d6c09acdd2a7a362ac3e879b50bf52216d719 (patch) | |
tree | a27889e7928163de5b394007674c26264041f7dc | |
parent | 926b617066eeafdf4c70b99061ada490b98af17d (diff) |
Use only build stage only in ci
-rw-r--r-- | .gitlab-ci.yml | 30 |
1 files changed, 7 insertions, 23 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 063c7a9..8074561 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,3 +1,5 @@ +image: haskell:latest + cache: paths: - .stack-work @@ -6,36 +8,18 @@ cache: - bower_components - yarn.lock -stages: - - install_purescript - - prepare_site - - pages - -install_purescript: - image: node:latest - stage: install_purescript +build: script: + - apt-get update && apt-get install xz-utils make nodejs - npm install bower - npm install purescript - npm install pulp - - ./node_modules/.bin/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 + - export PATH="$(pwd)/node_modules/.bin":$PATH + - bower install --allow-root + - export STACK_ROOT="$(pwd)/.stack" - stack setup - stack install --only-dependencies - stack build - -pages: - image: haskell:latest - stage: pages - script: - - ls node_modules/.bin - - export PATH=node_modules/.bin:$PATH; - stack exec cooking build artifacts: paths: |