Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
privat committed Jun 24, 2024
1 parent a6c145d commit 06bea69
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 19 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/makefile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y build-essential ccache libgc-dev graphviz libunwind-dev libreadline-dev pkg-config
- run: make
- run: make -C src ../bin/nitc # make bin/nitc
- uses: actions/upload-artifact@v4
with:
path: bin
Expand All @@ -20,6 +20,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: git fetch origin # Ensure origin/master is present
- run: make sanity-check

tests-some:
Expand All @@ -42,6 +43,8 @@ jobs:
- uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y build-essential ccache libgc-dev graphviz libunwind-dev libreadline-dev pkg-config
- run
- run: git fetch origin # Ensure origin/master is present
- run: make nitunit-some

bootstrap-full:
Expand Down
38 changes: 20 additions & 18 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ bin/nitdoc:
bin/nitls:
cd src; make ../bin/nitls

bin/nitunit:
cd src; make ../bin/nitunit

bin/nitpick:
cd src; make ../bin/nitpick

doc/stdlib/index.html: bin/nitdoc bin/nitls
@echo '***************************************************************'
@echo '* Generate doc for NIT standard library *'
Expand Down Expand Up @@ -96,30 +102,27 @@ sanity-check:
misc/jenkins/checksignedoffby.sh
misc/jenkins/checklicense.sh

nitunit-some:
nitunit-some: bin/nitls bin/nitunit
git diff --name-only origin/master..HEAD -- "*.nit" "*.res" "README.*" | grep -v "^tests/\|contrib/" > list0.txt || true
xargs nitls -pP < list0.txt > list.txt
xargs bin/nitls -pP < list0.txt > list.txt
test -s list.txt || exit 0
xargs nitunit < list.txt
junit2html nitunit.xml
xargs bin/nitunit < list.txt

nitpick-full:
nitls lib src examples contrib
nitls -Pp lib src examples | grep -v -f tests/gitlab_ci.skip > list.txt || true # filter what is skipped by tests.sh
xargs nitpick < list.txt
nitpick-full: bin/nitls bin/nitpick
bin/nitls lib src examples contrib
bin/nitls -Pp lib src examples | grep -v -f tests/gitlab_ci.skip > list.txt || true # filter what is skipped by tests.sh
xargs bin/nitpick < list.txt


# LIB, CONTRIB AND OOT ##############################################

nitunit-lib:
nitls -Pp lib | grep -v -f tests/gitlab_ci.skip > list.txt || true # filter what is skipped by tests.sh
xargs nitunit -v < list.txt
junit2html nitunit.xml
nitunit-lib: bin/nitls bin/nitunit
bin/nitls -Pp lib | grep -v -f tests/gitlab_ci.skip > list.txt || true # filter what is skipped by tests.sh
xargs bin/nitunit -v < list.txt

nitunit-src:
nitls -Pp src examples | grep -v -f tests/gitlab_ci.skip > list.txt || true # filter what is skipped by tests.sh
xargs nitunit -v < list.txt
junit2html nitunit.xml
bin/nitls -Pp src examples | grep -v -f tests/gitlab_ci.skip > list.txt || true # filter what is skipped by tests.sh
xargs bin/nitunit -v < list.txt

test-contrib:
misc/jenkins/check_contrib.sh all check
Expand All @@ -134,9 +137,8 @@ bootstrap-full:
bench-fast:
cd benchmarks && ./bench_engines.sh --fast --fast --html options

nitunit-manual:
nitunit doc/manual/*.nit
junit2html nitunit.xml
nitunit-manual: bin/nitunit
bin/nitunit doc/manual/*.nit

# MORE TOOLS ########################################################

Expand Down
2 changes: 2 additions & 0 deletions src/full_bootstrap
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
set -e
set -x

./git-gen-version.sh

# Check c_src is up-to-date
make -C ../c_src

Expand Down

0 comments on commit 06bea69

Please sign in to comment.