-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Copy pathcircle.yml
59 lines (51 loc) · 1.82 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
version: 2
jobs:
build:
docker:
- image: node:7
- 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: gulp test