clean up "helper" files
This commit is contained in:
parent
e267a9216d
commit
76d8bdeca3
|
@ -1,2 +1,9 @@
|
|||
/.git
|
||||
/.vscode
|
||||
/**/*.o
|
||||
/**/*.so
|
||||
|
||||
/results/
|
||||
|
||||
/regression.diffs
|
||||
/regression.out
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
*.swp
|
||||
*.o
|
||||
*.so
|
||||
regression.diffs
|
||||
regression.out
|
||||
/**/*.o
|
||||
/**/*.so
|
||||
|
||||
/results/
|
||||
|
||||
/regression.diffs
|
||||
/regression.out
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
"includePath": [
|
||||
"/usr/include",
|
||||
"/usr/local/include",
|
||||
"/usr/include/postgresql/server",
|
||||
"${workspaceRoot}"
|
||||
],
|
||||
"defines": [],
|
||||
|
@ -75,15 +76,7 @@
|
|||
"intelliSenseMode": "clang-x64",
|
||||
"includePath": [
|
||||
"${workspaceRoot}",
|
||||
"${workspaceRoot}/src",
|
||||
"${localappdata}/lxss/rootfs/usr/include/c++/5",
|
||||
"${localappdata}/lxss/rootfs/usr/include/x86_64-linux-gnu/c++/5",
|
||||
"${localappdata}/lxss/rootfs/usr/include/c++/5/backward",
|
||||
"${localappdata}/lxss/rootfs/usr/lib/gcc/x86_64-linux-gnu/5/include",
|
||||
"${localappdata}/lxss/rootfs/usr/local/include",
|
||||
"${localappdata}/lxss/rootfs/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed",
|
||||
"${localappdata}/lxss/rootfs/usr/include/x86_64-linux-gnu",
|
||||
"${localappdata}/lxss/rootfs/usr/include"
|
||||
"${workspaceRoot}/src"
|
||||
],
|
||||
"defines": [
|
||||
"__linux__",
|
||||
|
@ -106,5 +99,5 @@
|
|||
}
|
||||
}
|
||||
],
|
||||
"version": 3
|
||||
}
|
||||
"version": 4
|
||||
}
|
6
Makefile
6
Makefile
|
@ -30,9 +30,3 @@ SHLIB_LINK := -lphonenumber -lstdc++
|
|||
PG_CONFIG := pg_config
|
||||
PGXS := $(shell $(PG_CONFIG) --pgxs)
|
||||
include $(PGXS)
|
||||
|
||||
# Docker stuff
|
||||
.PHONY: docker-image
|
||||
|
||||
docker-image: clean
|
||||
docker build -t pg_libphonenumber .
|
||||
|
|
|
@ -49,8 +49,4 @@ sudo make install
|
|||
## Running tests
|
||||
|
||||
For convenience, we provide a Docker image that sets up a test environment.
|
||||
|
||||
```shell-script
|
||||
make docker-image
|
||||
docker run -it pg_libphonenumber
|
||||
```
|
||||
Run the script `./run-tests.sh` to build and run the image.
|
||||
|
|
|
@ -3,8 +3,7 @@
|
|||
# Used in the Docker image to run tests
|
||||
|
||||
PGDATA=/var/lib/postgresql/data
|
||||
# Reads PG_MAJOR from the environment
|
||||
pg_ctl=/usr/lib/postgresql/${PG_MAJOR}/bin/pg_ctl
|
||||
$pg_ctl "--pgdata=${PGDATA}" start -w
|
||||
"$pg_ctl" "--pgdata=${PGDATA}" start -w
|
||||
make installcheck
|
||||
$pg_ctl "--pgdata=${PGDATA}" stop
|
||||
"$pg_ctl" "--pgdata=${PGDATA}" stop
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
|
||||
docker build -t pg_libphonenumber_test -f docker/Dockerfile .
|
||||
docker run -it --rm --mount type=tmpfs,destination=/var/lib/postgresql/data pg_libphonenumber_test
|
|
@ -1,4 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
docker build -t pg_libphonenumber_test -f docker/Dockerfile .
|
||||
docker run -it --mount type=tmpfs,destination=/var/lib/postgresql/data pg_libphonenumber_test
|
Loading…
Reference in New Issue