build: Upgrade to circleci v2 (#120)

* build: Upgrade to circleci v2

* build: remove .circleci

* build: fix docker config

* build: enable test

* build: remove path

* build: change docker image

* build: no npm install
This commit is contained in:
Khaled Garbaya
2018-06-25 15:02:31 +02:00
committed by GitHub
parent ff6ffacc64
commit 3d47cc2293
2 changed files with 33 additions and 10 deletions

33
.circleci/config.yml Normal file
View File

@@ -0,0 +1,33 @@
version: 2
jobs:
build:
docker:
- image: cypress/base:8
steps:
- checkout
- restore_cache: # special step to restore the dependency cache
key: dependency-cache-{{ checksum "package.json" }}
- run:
name: install-npm-wee
command: npm install
- save_cache: # special step to save the dependency cache
key: dependency-cache-{{ checksum "package.json" }}
paths:
- ./node_modules
- run:
name: clone-e2e-test
command: git clone https://github.com/contentful/the-example-app-e2e-tests.git ./test/e2e
- run:
name: install-e2e-test
command: cd ./test/e2e && npm install
- run:
name: test
command: npm run test
- store_artifacts:
path: /tmp/artifact-1
destination: artifact-file-cypress-result_`date +%Y-%m-%d_%H-%M-%S`
- store_artifacts:
path: /tmp/artifacts