This repository has been archived by the owner on Jul 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ci(circle): add config file * chore(nvm): consistent version * chore(pkg): remove unused scripts & packages * ci: remove unused scripts * ci(circle): correct config * ci: also run docs * ci(circle): remove browser leftovers * ci(circle): more fitting index name * ci: replace travis build by circle build * ci: simplify scripts * remove utils.isCIBrowser * Update scripts/build.sh Co-Authored-By: Haroenv <fingebimus@me.com> * ci(circle): change naming * chore(ci): consistent naming
- Loading branch information
Showing
25 changed files
with
232 additions
and
1,833 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
aliases: | ||
- &install_yarn_version | ||
name: Install specific Yarn version | ||
command: | | ||
curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.15.2 | ||
echo 'export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"' >> $BASH_ENV | ||
- &restore_yarn_cache | ||
name: Restore Yarn cache | ||
keys: | ||
- yarn-{{ .Branch }}-packages-{{ checksum "yarn.lock" }} | ||
|
||
- &save_yarn_cache | ||
name: Save Yarn cache | ||
key: yarn-{{ .Branch }}-packages-{{ checksum "yarn.lock" }} | ||
paths: | ||
- ~/.cache/yarn | ||
|
||
- &run_yarn_install | ||
name: Install dependencies | ||
command: yarn install | ||
|
||
defaults: &defaults | ||
working_directory: ~/algoliasearch-helper-js | ||
docker: | ||
- image: circleci/node:8.15.1@sha256:3d32b8457083c33c04eb60fac02c0e39de5bd28de4b95393d7dcb5aa37b20af7 | ||
|
||
version: 2 | ||
jobs: | ||
build: | ||
<<: *defaults | ||
steps: | ||
- checkout | ||
- run: *install_yarn_version | ||
- restore_cache: *restore_yarn_cache | ||
- run: *run_yarn_install | ||
- save_cache: *save_yarn_cache | ||
- run: | ||
name: Build | ||
command: yarn build | ||
|
||
test: | ||
<<: *defaults | ||
steps: | ||
- checkout | ||
- run: *install_yarn_version | ||
- restore_cache: *restore_yarn_cache | ||
- run: *run_yarn_install | ||
- save_cache: *save_yarn_cache | ||
- run: | ||
name: Lint & Code styles | ||
command: yarn lint | ||
- run: | ||
name: Unit & Integration Tests | ||
command: yarn test --maxWorkers=4 | ||
|
||
docs: | ||
<<: *defaults | ||
steps: | ||
- checkout | ||
- run: *install_yarn_version | ||
- restore_cache: *restore_yarn_cache | ||
- run: *run_yarn_install | ||
- save_cache: *save_yarn_cache | ||
- run: | ||
name: Build documentation | ||
command: yarn doc | ||
|
||
workflows: | ||
version: 2 | ||
ci: | ||
jobs: | ||
- build | ||
- test | ||
- docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
8.9.0 | ||
8.15.1 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.