This repository has been archived by the owner on Mar 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add build example tests and use circleci 2 (#262)
- Loading branch information
1 parent
540ecd9
commit a2fc681
Showing
7 changed files
with
289 additions
and
211 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,18 @@ | ||
version: 2 | ||
jobs: | ||
build: | ||
working_directory: ~/vitaminjs | ||
docker: | ||
- image: kkarczmarczyk/node-yarn:6.9 | ||
steps: | ||
- checkout | ||
- run: | ||
name: Dependencies | ||
command: yarn install --no-progress && yarn link | ||
- run: | ||
name: Lint | ||
command: yarn lint | ||
- run: | ||
name: Build examples | ||
command: ls -1 examples | picard tests split | xargs -n 1 ./.circleci/test.sh | ||
|
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,19 @@ | ||
#!/usr/bin/env bash | ||
|
||
example="$1" | ||
|
||
if [ -z "$example" ] | ||
then | ||
echo "more parallelism than tests" | ||
else | ||
echo "Testing $example" | ||
|
||
cd "./examples/$example" | ||
yarn install --no-progress | ||
yarn link vitaminjs | ||
yarn run clean | ||
yarn run build | ||
test -e build/server_bundle.js | ||
NODE_ENV=production yarn run build | ||
test -e build/server_bundle.js | ||
fi |
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
Large diffs are not rendered by default.
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