Skip to content

Commit

Permalink
[feature] Feature add CircleCi (#113)
Browse files Browse the repository at this point in the history
* [init] add initial circleci setup

* [init] adds initial es-check script
  • Loading branch information
yowainwright authored Apr 6, 2018
1 parent 4150589 commit 6021ce2
Show file tree
Hide file tree
Showing 2 changed files with 113 additions and 1 deletion.
110 changes: 110 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
defaults: &defaults
working_directory: ~/code
docker:
- image: circleci/node:4-browsers
environment:
CHROME_BIN: "/usr/bin/google-chrome"
NPM_CONFIG_LOGLEVEL: error # make npm commands less noisy
JOBS: max # https://gist.github.com/ralphtheninja/f7c45bdee00784b41fed

restore_cache: &restore_cache
keys:
- code-{{ .Branch }}-{{ checksum "package.json" }}
- code-master-{{ checksum "package.json" }}

save_cache: &save_cache
key: code-{{ .Branch }}-{{ checksum "package.json" }}
paths:
- node_modules


version: 2
jobs:
jobs:
build:
<<: *defaults
steps:
- checkout
- restore_cache: *restore_cache
- run: curl -o- -L https://yarnpkg.com/install.sh | bash
- run: export PATH=$HOME/.yarn/bin:$PATH
- run: yarn install --no-lockfile --non-interactive
- save_cache: *save_cache

test-es:
<<: *defaults
steps:
- checkout
- restore_cache: *restore_cache
- run: yarn test:es-check

test-ember-lst-2.16:
<<: *defaults
steps:
- checkout
- restore_cache: *restore_cache
- run: node_modules/.bin/ember try:one ember-lts-2.16 --config-path="config/ember-try.js" --skip-cleanup

test-ember-lst-2.18:
<<: *defaults
steps:
- checkout
- restore_cache: *restore_cache
- run: node_modules/.bin/ember try:one ember-lts-2.18 --config-path="config/ember-try.js" --skip-cleanup

test-ember-release:
<<: *defaults
steps:
- checkout
- restore_cache: *restore_cache
- run: node_modules/.bin/ember try:one ember-release --config-path="config/ember-try.js" --skip-cleanup

test-ember-beta:
<<: *defaults
steps:
- checkout
- restore_cache: *restore_cache
- run: node_modules/.bin/ember try:one ember-beta --config-path="config/ember-try.js" --skip-cleanup

test-ember-canary:
<<: *defaults
steps:
- checkout
- restore_cache: *restore_cache
- run: node_modules/.bin/ember try:one ember-canary --config-path="config/ember-try.js" --skip-cleanup

test-ember-default:
<<: *defaults
steps:
- checkout
- restore_cache: *restore_cache
- run: node_modules/.bin/ember try:one ember-default --config-path="config/ember-try.js" --skip-cleanup


workflows:
version: 2
commit:
jobs:
- build
- test-es:
requires:
- build
- test-ember-lst-2.16:
requires:
- build
- test-ember-lst-2.18:
requires:
- build
- test-ember-release:
requires:
- build
- test-ember-beta:
requires:
- build
- test-ember-canary:
requires:
- build
- test-ember-default:
requires:
- build

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@
"scripts": {
"build": "ember build",
"eslint": "eslint . --fix",
"lint:js": "eslint ./*.js addon addon-test-support app config lib server test-support tests",
"lint:js": "eslint .",
"start": "ember serve",
"test": "ember try:each",
"test:es-check": "es-check es5 ./vendor/js/*.js",
"chore:delete-branch": "if git show-ref --quiet refs/heads/chore-changelog; then git branch -D chore-changelog; fi",
"chore:branch": "git checkout -b chore-changelog",
"chore:changelog": "lerna-changelog",
Expand Down Expand Up @@ -54,6 +55,7 @@
"ember-source": "~3.0.0",
"ember-source-channel-url": "^1.0.1",
"ember-try": "^0.2.23",
"es-check": "^2.0.3",
"eslint": "^4.19.1",
"eslint-config-dollarshaveclub": "^3.1.0",
"loader.js": "^4.2.3"
Expand Down

0 comments on commit 6021ce2

Please sign in to comment.