forked from angular-fullstack/generator-angular-fullstack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
67 lines (58 loc) · 2.12 KB
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
version: 2
jobs:
build:
docker:
- image: node:8
- image: mongo
command: [mongod, --smallfiles]
working_directory: ~/generator-angular-fullstack
environment:
NODE_ENV: test
branches:
ignore:
- gh-pages
steps:
- checkout
- run: git submodule sync && git submodule update --init
# Global npm dependencies
- restore_cache:
keys:
- generator-angular-fullstack-npm-global-{{ .Branch }}
- generator-angular-fullstack-npm-global-
- run: npm install --global gulp-cli
- save_cache:
key: generator-angular-fullstack-npm-global-{{ .Branch }}
paths:
- /usr/local/lib/node_modules
# Generator npm dependencies
- restore_cache:
keys:
- generator-angular-fullstack-npm-{{ .Branch }}-{{ checksum "package.json" }}
- generator-angular-fullstack-npm-{{ .Branch }}
- generator-angular-fullstack-npm-
- run: npm install --quiet
- save_cache:
key: generator-angular-fullstack-npm-{{ .Branch }}-{{ checksum "package.json" }}
paths:
- ~/generator-angular-fullstack/node_modules
# Test fixtures
- run: gulp updateFixtures:test
- restore_cache:
keys:
- generator-angular-fullstack-npm-fixtures-{{ .Branch }}-{{ checksum "templates/app/_package.json" }}
- generator-angular-fullstack-npm-fixtures-{{ .Branch }}
- generator-angular-fullstack-npm-fixtures-
- run: gulp installFixtures
- save_cache:
key: generator-angular-fullstack-npm-fixtures-{{ .Branch }}-{{ checksum "templates/app/_package.json" }}
paths:
- ~/generator-angular-fullstack/test/fixtures/node_modules
- run: gulp build
- run: npm test
- deploy:
command: |
if [ "${CIRCLE_BRANCH}" == "master" ]; then
git config --global user.email "[email protected]"
git config --global user.name "CircleCI"
cd docs && npm install && npm run build && npm run deploy
fi