Skip to content

Commit ec13e8f

Browse files
committed
<Enhancement>[UnitTest]: Update scripts
Move scripts to 'scripts' directory [#64]
1 parent 032898f commit ec13e8f

File tree

9 files changed

+41
-12
lines changed

9 files changed

+41
-12
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ install:
1616

1717

1818
# command to run tests
19-
script: ${TRAVIS_BUILD_DIR}/runtests.sh
19+
script: ${TRAVIS_BUILD_DIR}/scripts/runtests.sh

pushtoprod.sh

Lines changed: 0 additions & 4 deletions
This file was deleted.

pushtotest.sh

Lines changed: 0 additions & 3 deletions
This file was deleted.

runtests.sh

Lines changed: 0 additions & 4 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.

scripts/pushtoprod.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
3+
function changeToProjectRoot {
4+
5+
export areHere=`basename ${PWD}`
6+
if [[ ${areHere} = "scripts" ]]; then
7+
cd ..
8+
fi
9+
}
10+
11+
changeToProjectRoot
12+
13+
twine upload dist/*
14+

scripts/pushtotest.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
3+
function changeToProjectRoot {
4+
5+
export areHere=`basename ${PWD}`
6+
if [[ ${areHere} = "scripts" ]]; then
7+
cd ..
8+
fi
9+
}
10+
11+
changeToProjectRoot
12+
13+
twine upload --repository-url https://test.pypi.org/legacy/ dist/*

scripts/runtests.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
3+
function changeToProjectRoot {
4+
5+
export areHere=`basename ${PWD}`
6+
if [[ ${areHere} = "scripts" ]]; then
7+
cd ..
8+
fi
9+
}
10+
11+
changeToProjectRoot
12+
13+
python3 -m test.RunTests

0 commit comments

Comments
 (0)