Minor CI fix

This commit is contained in:
Aarni Halinen
2020-03-02 19:51:55 +02:00
parent 965211c3c6
commit c58ea2cc63
+11 -18
View File
@@ -1,8 +1,8 @@
stages:
- setup
- lint
- test
- build
- test
- publish
- deploy
@@ -31,34 +31,18 @@ sass:lint:
script:
- npm run lint:sass
build:
image: node:12
needs: ["install"]
stage: lint
script:
- API_URL=http://web.sik.party:8000/api npm run build
# test:unit:
# image: node:12
# stage: test
# script:
# - npm run test:unit
test:e2e:
image: circleci/node:12-browsers
needs: ["install"]
stage: test
only:
- master
script:
- API_URL=http://web.sik.party:8000/api npm run test:e2e
build:
image: node:12
needs: ["install"]
stage: build
script:
- npm run build
- API_URL=http://web.sik.party:8000/api npm run build
dependencies:
- install
artifacts:
@@ -66,6 +50,15 @@ build:
- dist
expire_in: 1 week
test:e2e:
image: circleci/node:12-browsers
needs: ["install", "build"]
stage: test
only:
- master
script:
- npm run test:e2e
publish:dev:
stage: publish
image: docker:stable