From 485826e460a624e379e414d294c14c583ed55cb6 Mon Sep 17 00:00:00 2001
From: nynhex <nynhex@nynhex.co>
Date: Fri, 14 Dec 2018 13:18:28 -0600
Subject: [PATCH] Only lock pytest/pytest-deps, smoke CI build

---
 Pipfile  | 12 ++++++------
 build.sh |  9 +++++++++
 2 files changed, 15 insertions(+), 6 deletions(-)
 create mode 100755 build.sh

diff --git a/Pipfile b/Pipfile
index db32dc6..5c5f889 100644
--- a/Pipfile
+++ b/Pipfile
@@ -4,19 +4,19 @@ verify_ssl = true
 
 [dev-packages]
 "autopep8" = "*"
-"gprof2dot" = "==2017.9.19"
+"gprof2dot" = "*"
 "pep8" = "*"
 "pyprof2calltree" = "*"
 "urllib3" = "*"
 asynctest = "*"
 autoflake = "*"
-awscli = "==1.16.49"
+awscli = "*"
 certifi = "*"
-crayons = "==0.1.2"
-cython = "==0.29"
+crayons = "*"
+cython = "*"
 ipython = "*"
 isort = "*"
-jsonschema = "==2.6.0"
+jsonschema = "*"
 jupyter = "*"
 line-profiler = "*"
 mypy = "*"
@@ -37,7 +37,7 @@ pytest-timeout = "*"
 python-rapidjson = "*"
 requests = "*"
 yapf = "*"
-funcy = "==1.11"
+funcy = "*"
 vprof = "*"
 
 [packages]
diff --git a/build.sh b/build.sh
new file mode 100755
index 0000000..db17a15
--- /dev/null
+++ b/build.sh
@@ -0,0 +1,9 @@
+echo Build started on `date`
+export IMAGE_TAG=`git ls-remote --heads origin | grep $(git rev-parse HEAD) | cut -d / -f 3`
+if [ "$IMAGE_TAG" = "master" ] ; then export IMAGE_TAG=latest ; fi
+export REPO_PATH=`git rev-parse --show-toplevel`
+export REPO_NAME=`basename $REPO_PATH`
+export IMAGE_REPO_NAME="steemit/$REPO_NAME"
+export SOURCE_COMMIT=`git rev-parse HEAD`
+echo Building branch $IMAGE_TAG from $IMAGE_REPO_NAME
+docker build . -t $IMAGE_REPO_NAME:$IMAGE_TAG --build-arg SOURCE_COMMIT="${SOURCE_COMMIT}" --build-arg DOCKER_TAG="${IMAGE_TAG}"
-- 
GitLab