Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
e10cb12
Batman!
LinusBorg Oct 3, 2017
0205c22
fix wrong job name
LinusBorg Oct 3, 2017
d38941d
fix working dir paths
LinusBorg Oct 3, 2017
124af6d
fix node_modules path
LinusBorg Oct 3, 2017
d9664a2
test other step order
LinusBorg Oct 3, 2017
9dc3f68
try other shell
LinusBorg Oct 3, 2017
520638d
...and another one
LinusBorg Oct 3, 2017
64e0906
rewrite test.sh
LinusBorg Oct 3, 2017
07aa3ff
try running a bash script instead
LinusBorg Oct 3, 2017
5a9afe9
and another attempt.
LinusBorg Oct 3, 2017
64e2cb3
make executable
LinusBorg Oct 3, 2017
e4518d2
anpother try...
LinusBorg Oct 9, 2017
60b1d9c
fix workflow errors
LinusBorg Oct 9, 2017
3c876d9
fix path
LinusBorg Oct 9, 2017
acab0ee
Batman!
LinusBorg Nov 14, 2017
36121bd
added scenarios and made it work!!
LinusBorg Nov 14, 2017
82298f7
refactors and comments
LinusBorg Nov 16, 2017
82d72dd
just fumbling around
LinusBorg Dec 4, 2017
37f60c9
adfda
LinusBorg Dec 10, 2017
96996da
adjust test scenarios for autoInstall
LinusBorg Dec 17, 2017
10fac73
x<vb<xb
LinusBorg Dec 17, 2017
8c60a52
first try since a long time
LinusBorg Dec 17, 2017
b31df03
small fix
LinusBorg Dec 17, 2017
d1ff81c
fix path to vue-cli
LinusBorg Dec 17, 2017
b2827f1
fix scenarios
LinusBorg Dec 17, 2017
1b8093b
fix persist paths
LinusBorg Dec 17, 2017
013616a
testing with quotes for the path
LinusBorg Dec 17, 2017
0c22cdf
removing unhelpful quotes
LinusBorg Dec 21, 2017
a071d5c
New Test
LinusBorg Jan 4, 2018
6768b24
fixed indentation
LinusBorg Jan 4, 2018
00f094a
test with full setup
LinusBorg Jan 4, 2018
4609707
2nd full test
LinusBorg Jan 4, 2018
d378e49
bump jest version
LinusBorg Jan 4, 2018
109eb26
other docker image
LinusBorg Jan 4, 2018
00d45b7
test with runinband
LinusBorg Jan 4, 2018
08f96ab
test with airbnb/karma as well
LinusBorg Jan 4, 2018
dd6dfad
remove superfluous checkout
LinusBorg Jan 4, 2018
40148b3
run unit and e2e individually.
LinusBorg Jan 4, 2018
ded7723
fix eslint paths for test subdirs
LinusBorg Jan 4, 2018
1ff7f68
adjust for airbnb preset
LinusBorg Jan 4, 2018
71a5224
only lint e2e specs, config differences are unfixable.
LinusBorg Jan 4, 2018
b1dec9b
adding a small readme
LinusBorg Jan 4, 2018
730f331
remove test.sh
LinusBorg Jan 13, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Batman!
  • Loading branch information
LinusBorg committed Jan 4, 2018
commit e10cb12d7c94b78fa850dc3ab8ab2ac9b4e5afe1
98 changes: 98 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
version: 2
defaults: &defaults
working_directory: ~/project/webpack-template
docker:
- image: circleci/node:8.3-browsers
jobs:
install_template_deps:
<<: *defaults
steps:
- checkout
- restore_cache:
key: template-cache-{{ checksum "package.json" }}
- run:
name: Install npm dependencies
command: npm install
- save_cache:
key: template-cache-{{ checksum "package.json" }}
paths:
- node_modules
- persist_to_workspace:
root: ~/project
paths:
- webpack-template

create_project_and_deps:
<<: *defaults
steps:
- attach_workspace:
at: ~/projets
- checkout
- run:
name: install template
command: |
yes "" | ./node_modules/.bin/vue init . test
- persist_to_workspace:
root: ~/project
paths:
- webpack-template/test

install_project_deps:
<<: *defaults
steps:
- attach_workspace:
at: ~/projets
- checkout
- restore_cache:
key: project-cache-{{ checksum "test/package.json" }}
- run:
name: install template dependencies
command: |
cd test
npm install
- save_chache:
key: project-cache-{{ checksum "test/package.json" }}
paths:
- test/node_modules
- persist_to_workspace:
root: ~/project
paths:
- webpack-template/test/node_modules

exec_unit_tests:
<<: *defaults
steps:
- attach_workspace:
at: ~/project
- checkout
- run:
name: Unit Tests
command: npm run unit

exec_e2e_tests:
<<: *defaults
steps:
- attach_workspace:
at: ~/project
- checkout
- run:
name: End-To-End Tests
command: npm run e2e

workflows:
version: 2
build_and_test:
jobs:
- install_root_deps
- create_project_and_deps:
requires:
- install_root_deps
- install_template_and_deps:
requires:
- create_project_and_deps
- exec_unit_tests:
requires:
- install_template_and_deps
- exec_e2e_tests:
requires:
- install_template_and_deps
13 changes: 0 additions & 13 deletions circle.yml

This file was deleted.