Skip to content

Commit

Permalink
build: switch to circleci
Browse files Browse the repository at this point in the history
  • Loading branch information
devversion committed Jan 18, 2019
1 parent c920a38 commit ca93bea
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 65 deletions.
45 changes: 45 additions & 0 deletions .circleci/config.yml
@@ -0,0 +1,45 @@
# Cache key for CircleCI. We want to invalidate the cache whenever the Yarn lock file changes.
var_1: &cache_key material-angular-io-{{ checksum "yarn.lock" }}
var_2: &default_docker_image circleci/node:10.12-browsers

# Settings common to each job
var_3: &job_defaults
working_directory: ~/material-angular-io
docker:
- image: *default_docker_image

var_4: &save_cache
save_cache:
key: *cache_key
paths:
- "node_modules/"

var_5: &yarn_install
run: yarn install --frozen-lockfile --non-interactive

jobs:
lint:
<<: *job_defaults
steps:
- checkout
- restore_cache:
key: *cache_key
- *yarn_install
- run: yarn lint
- *save_cache

test:
<<: *job_defaults
steps:
- checkout
- restore_cache:
key: *cache_key
- *yarn_install
- run: yarn test --watch false --progress=false

workflows:
version: 2
default_workflow:
jobs:
- lint
- test
33 changes: 0 additions & 33 deletions .travis.yml

This file was deleted.

19 changes: 0 additions & 19 deletions scripts/ci/build-and-test.sh

This file was deleted.

13 changes: 0 additions & 13 deletions scripts/ci/travis-mode.sh

This file was deleted.

0 comments on commit ca93bea

Please sign in to comment.