Skip to content

Commit

Permalink
Merge 15c449b into 538c008
Browse files Browse the repository at this point in the history
  • Loading branch information
dubzzz committed Oct 30, 2020
2 parents 538c008 + 15c449b commit 6a773c1
Show file tree
Hide file tree
Showing 16 changed files with 1,101 additions and 180 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
language: node_js
node_js:
- "15"
- "14"
- "13"
- "12"
- "11"
- "10"
cache:
directories:
Expand All @@ -11,6 +14,8 @@ script:
- yarn format:check
- yarn build:prod
- yarn test
- git fetch --unshallow
- yarn bench -c 062041a39eff50db57ad3dd3a3742a4f11e53cb9:v3.1.0 -c 538c008283a10cfca78b20ae82765028a8a751f2:master -c c017f2be702dda219dc98df2ca2cc85f4795e469:basic -c 1892e2944e907868fa4b62f500acd32f2ad8f67e:shared-arrays -c "062041a39eff50db57ad3dd3a3742a4f11e53cb9:v3.1.0(2)" -c "538c008283a10cfca78b20ae82765028a8a751f2:master(2)" -c "c017f2be702dda219dc98df2ca2cc85f4795e469:basic(2)" -c "1892e2944e907868fa4b62f500acd32f2ad8f67e:shared-arrays(2)"
after_success:
- yarn coverage
stages:
Expand Down
27 changes: 27 additions & 0 deletions build-another.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Forbidden if something has not been commited
if ! git diff-index --quiet HEAD --; then
echo "Please commit your local changes!"
exit 1
fi

# Extract details concerning the current environnment
rawCurrentBranch="$(git branch | grep "*")"
currentBranch="$(expr substr "${rawCurrentBranch}" 3 1000)"

# Move to commit and build it
commitId=$1
if [ -z "$commitId" ]
then
echo "Please provide a commit id!"
exit 1
fi
target=$2
if [ -z "$target" ]
target="es6"
fi
git checkout "${commitId}"
yarn
./node_modules/typescript/bin/tsc --target "${target}" --outDir "lib-${commitId}/"

# Move back to original location
git checkout "${currentBranch}"
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
"@types/jest": "^26.0.4",
"@types/node": "^14.0.13",
"benchmark": "^2.1.4",
"chalk": "^4.1.0",
"console-table-printer": "2.4.11",
"coveralls": "^3.0.9",
"fast-check": "^2.0.0",
"glob": "^7.1.6",
Expand All @@ -50,7 +52,8 @@
"source-map-support": "^0.5.16",
"ts-jest": "^26.1.2",
"ts-node": "^9.0.0",
"typescript": "^4.0.2"
"typescript": "^4.0.2",
"yargs": "^16.0.3"
},
"keywords": [
"pure random",
Expand Down
Loading

0 comments on commit 6a773c1

Please sign in to comment.