test: add git example

This commit is contained in:
tydeu 2021-07-28 09:10:14 -04:00
parent bc8c39e802
commit 91d3df58cd
7 changed files with 32 additions and 0 deletions

2
examples/git/.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
/build
/lean_packages

View file

@ -0,0 +1 @@
import Hello

2
examples/git/clean.sh Normal file
View file

@ -0,0 +1,2 @@
rm -rf build
rm -rf lean_packages

18
examples/git/package.lean Normal file
View file

@ -0,0 +1,18 @@
import Lake.Package
open Lake System
def package : PackageConfig := {
name := "gitHello"
version := "1.0"
dependencies := [
{
name := "hello",
src := Source.git
"https://github.com/tydeu/lean4-lake.git"
"71defa066dd845a31d19547f1a3e01f79c5fc8d9"
(branch := none)
dir := FilePath.mk "examples" / "hello"
}
]
}

1
examples/git/package.sh Normal file
View file

@ -0,0 +1 @@
../../build/bin/Lake build-bin

3
examples/git/test.sh Normal file
View file

@ -0,0 +1,3 @@
./clean.sh
./package.sh
./build/bin/gitHello

View file

@ -18,6 +18,11 @@ cd deps
./test.sh
cd ..
echo 'testing git'
cd git
./test.sh
cd ..
echo 'testing ext'
cd ext
./test.sh