-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
18 additions
and
39 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
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,24 +1,17 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
CI_BRANCH="$1" | ||
sudo apt update > /dev/null | ||
sudo apt -y install meson ninja-build | ||
|
||
echo "Branch: $CI_BRANCH" | ||
make --no-print-directory testbin -C p | ||
ERRORED=$? | ||
if [ "$ERRORED" == "1" ]; then | ||
exit $ERRORED | ||
fi | ||
CI_BRANCH="$1" | ||
CI_JSDEC="$PWD" | ||
|
||
## jsdec-test | ||
cd .. | ||
CI_WORKDIR=$(pwd) | ||
echo "Work dir: $CI_WORKDIR" | ||
echo "CI_BRANCH: $CI_BRANCH" | ||
echo "CI_JSDEC: $CI_JSDEC" | ||
|
||
rm -rf jsdec-test >/dev/null 2>&1 || echo "no need to clean.." | ||
git clone --branch "$CI_BRANCH" --depth 1 https://github.com/rizinorg/jsdec-test || git clone --depth 1 https://github.com/rizinorg/jsdec-test | ||
cd jsdec-test | ||
rm -rf tests >/dev/null 2>&1 || echo "no need to clean.." | ||
git clone --branch "$CI_BRANCH" --depth 1 https://github.com/rizinorg/jsdec-test tests || git clone --depth 1 https://github.com/rizinorg/jsdec-test tests | ||
cd tests | ||
chmod +x testall.sh | ||
./testall.sh "$CI_WORKDIR/jsdec" travis | ||
ERRORED=$? | ||
cd .. | ||
./testall.sh "$CI_JSDEC" travis |
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 |
---|---|---|
|
@@ -15,23 +15,22 @@ jobs: | |
with: | ||
node-version: '16' | ||
- name: eslint | ||
run: chmod +x .ci-scripts/ci-eslint.sh && .ci-scripts/ci-eslint.sh ${GITHUB_REF##*/} | ||
run: chmod +x .ci-scripts/ci-eslint.sh && .ci-scripts/ci-eslint.sh | ||
|
||
tests: | ||
name: tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Checkout jsdec-test | ||
uses: actions/checkout@v3 | ||
- name: tests | ||
run: chmod +x .ci-scripts/ci-tests.sh && .ci-scripts/ci-tests.sh ${GITHUB_REF##*/} | ||
run: chmod +x .ci-scripts/ci-tests.sh && .ci-scripts/ci-tests.sh "${{ github.ref_name }}" | ||
|
||
licenses: | ||
name: licenses | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: REUSE Compliance Check | ||
uses: fsfe/[email protected] | ||
- name: Reuse Compliance Check | ||
uses: fsfe/reuse-action@v2 | ||
with: | ||
args: --suppress-deprecation lint |
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