test: add git example
This commit is contained in:
parent
bc8c39e802
commit
91d3df58cd
7 changed files with 32 additions and 0 deletions
2
examples/git/.gitignore
vendored
Normal file
2
examples/git/.gitignore
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
/build
|
||||
/lean_packages
|
||||
1
examples/git/GitHello.lean
Normal file
1
examples/git/GitHello.lean
Normal file
|
|
@ -0,0 +1 @@
|
|||
import Hello
|
||||
2
examples/git/clean.sh
Normal file
2
examples/git/clean.sh
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
rm -rf build
|
||||
rm -rf lean_packages
|
||||
18
examples/git/package.lean
Normal file
18
examples/git/package.lean
Normal 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
1
examples/git/package.sh
Normal file
|
|
@ -0,0 +1 @@
|
|||
../../build/bin/Lake build-bin
|
||||
3
examples/git/test.sh
Normal file
3
examples/git/test.sh
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
./clean.sh
|
||||
./package.sh
|
||||
./build/bin/gitHello
|
||||
|
|
@ -18,6 +18,11 @@ cd deps
|
|||
./test.sh
|
||||
cd ..
|
||||
|
||||
echo 'testing git'
|
||||
cd git
|
||||
./test.sh
|
||||
cd ..
|
||||
|
||||
echo 'testing ext'
|
||||
cd ext
|
||||
./test.sh
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue