File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
-
3
2
# Run this script test.sh from project root directory containing setup.py
3
+
4
+ set -ev
5
+
4
6
pr_branch=$1
5
- if [" ${pr_branch} " == " false" ]:
7
+ if [ " ${pr_branch} " == " false" ]
6
8
then
7
9
exit 0
8
10
fi
9
11
12
+ echo " PR: branch passed in: $pr_branch "
10
13
pip3 install .
11
14
git checkout ${pr_branch}
12
15
pr_version=$( python3 -c " import mplfinance; print(mplfinance.__version__)" )
13
16
git checkout master
14
17
in_version=$( python3 -c " import mplfinance; print(mplfinance.__version__)" )
15
18
echo " PR: ${pr_version} ; Incumbent: ${in_version} "
16
19
result=$( python3 -m mplfinance.check_version --pr ${pr_version} --in ${in_version} )
17
- tox
18
- if [" ${result} " != " VersionCheck:pr>master" ]
20
+ if [ " ${result} " != " VersionCheck:pr>master" ]
19
21
then
20
22
# version in PR doesn't pass the test
21
23
echo " ${result} "
You can’t perform that action at this time.
0 commit comments