Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Commit f26b870

Browse files
devversionjelbourn
authored andcommitted
build: switch to circleci (#574)
1 parent c920a38 commit f26b870

File tree

4 files changed

+45
-65
lines changed

4 files changed

+45
-65
lines changed

.circleci/config.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Cache key for CircleCI. We want to invalidate the cache whenever the Yarn lock file changes.
2+
var_1: &cache_key material-angular-io-{{ checksum "yarn.lock" }}
3+
var_2: &default_docker_image circleci/node:10.12-browsers
4+
5+
# Settings common to each job
6+
var_3: &job_defaults
7+
working_directory: ~/material-angular-io
8+
docker:
9+
- image: *default_docker_image
10+
11+
var_4: &save_cache
12+
save_cache:
13+
key: *cache_key
14+
paths:
15+
- "node_modules/"
16+
17+
var_5: &yarn_install
18+
run: yarn install --frozen-lockfile --non-interactive
19+
20+
jobs:
21+
lint:
22+
<<: *job_defaults
23+
steps:
24+
- checkout
25+
- restore_cache:
26+
key: *cache_key
27+
- *yarn_install
28+
- run: yarn lint
29+
- *save_cache
30+
31+
test:
32+
<<: *job_defaults
33+
steps:
34+
- checkout
35+
- restore_cache:
36+
key: *cache_key
37+
- *yarn_install
38+
- run: yarn test --watch false --progress=false
39+
40+
workflows:
41+
version: 2
42+
default_workflow:
43+
jobs:
44+
- lint
45+
- test

.travis.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

scripts/ci/build-and-test.sh

Lines changed: 0 additions & 19 deletions
This file was deleted.

scripts/ci/travis-mode.sh

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)