Merge pull request #3 from mozilla/artifacts
This commit is contained in:
Коммит
695bfead25
|
@ -12,7 +12,12 @@ jobs:
|
|||
- run: yarn install
|
||||
- run: yarn build
|
||||
- run: yarn test
|
||||
- run:
|
||||
name: Preparing artifacts
|
||||
command: yarn artifact
|
||||
- store_artifacts:
|
||||
path: ./artifacts
|
||||
workflows:
|
||||
build-and-test:
|
||||
jobs:
|
||||
- build-and-test
|
||||
build-and-test:
|
||||
jobs:
|
||||
- build-and-test
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
dist/
|
||||
node_modules/
|
||||
schemas/
|
||||
schemas/
|
||||
artifacts/
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env bash
|
||||
set -eu
|
||||
|
||||
# Prepare a directory for artifacts
|
||||
BUNDLE_NAME="rapid-experiments-shared-$(git describe --always)"
|
||||
OUTDIR="artifacts/$BUNDLE_NAME"
|
||||
mkdir -p $OUTDIR
|
||||
|
||||
# Copy all artifacts into it
|
||||
cp -r ./schemas $OUTDIR
|
||||
|
||||
# Bundle it
|
||||
tar -czvf $OUTDIR.tar.gz $OUTDIR
|
|
@ -1,15 +1,15 @@
|
|||
{
|
||||
"name": "tiger-schemas",
|
||||
"name": "rapid-experiments-shared",
|
||||
"version": "0.0.1",
|
||||
"license": "MPL-2.0",
|
||||
"scripts": {
|
||||
"build": "npm-run-all -s build:*",
|
||||
"build:json-schema": "./bin/build-schemas.ts",
|
||||
"artifact": "./bin/pack-artifact.sh",
|
||||
"test": "npm-run-all -s test:*",
|
||||
"test:normandy-arguments": "./test/normandy-arguments.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
},
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"@types/node": "^14.0.3",
|
||||
"@types/node-fetch": "^2.5.7",
|
||||
|
|
Загрузка…
Ссылка в новой задаче