Minor CI fix
This commit is contained in:
+11
-18
@@ -1,8 +1,8 @@
|
|||||||
stages:
|
stages:
|
||||||
- setup
|
- setup
|
||||||
- lint
|
- lint
|
||||||
- test
|
|
||||||
- build
|
- build
|
||||||
|
- test
|
||||||
- publish
|
- publish
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
@@ -31,34 +31,18 @@ sass:lint:
|
|||||||
script:
|
script:
|
||||||
- npm run lint:sass
|
- 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:
|
# test:unit:
|
||||||
# image: node:12
|
# image: node:12
|
||||||
# stage: test
|
# stage: test
|
||||||
# script:
|
# script:
|
||||||
# - npm run test:unit
|
# - 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:
|
build:
|
||||||
image: node:12
|
image: node:12
|
||||||
needs: ["install"]
|
needs: ["install"]
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- npm run build
|
- API_URL=http://web.sik.party:8000/api npm run build
|
||||||
dependencies:
|
dependencies:
|
||||||
- install
|
- install
|
||||||
artifacts:
|
artifacts:
|
||||||
@@ -66,6 +50,15 @@ build:
|
|||||||
- dist
|
- dist
|
||||||
expire_in: 1 week
|
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:
|
publish:dev:
|
||||||
stage: publish
|
stage: publish
|
||||||
image: docker:stable
|
image: docker:stable
|
||||||
|
|||||||
Reference in New Issue
Block a user