Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7cf00f0

Browse files
committed
Renamed tests directory to old_tests.
Moved `old_tests` to the `before_script` phase.
1 parent 9180a2b commit 7cf00f0

279 files changed

Lines changed: 8 additions & 7 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ before_script:
8686
- if [ "${TRAVIS_TAG}" = "" ]; then bash .travis/install_utplsql_release.sh; fi
8787
- if [ "${TRAVIS_TAG}" = "" ]; then bash .travis/create_additional_grants_for_old_tests.sh; fi
8888
- if [ "${TRAVIS_TAG}" = "" ]; then bash .travis/run_examples.sh; fi
89+
- if [ "${TRAVIS_TAG}" = "" ]; then bash .travis/run_old_tests.sh; fi
8990

9091
script:
91-
- if [ "${TRAVIS_TAG}" = "" ]; then bash .travis/run_old_tests.sh; fi
9292
- if [ "${TRAVIS_TAG}" = "" ]; then bash test/install_and_run_tests.sh; fi
9393
- if [ "${TRAVIS_TAG}" = "" ] && [ "${TRAVIS_REPO_SLUG}" = "${UTPLSQL_REPO}" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then sonar-scanner; fi
9494
- if [ "${TRAVIS_TAG}" = "" ]; then bash .travis/coveralls_uploader.sh; fi

.travis/coveralls_uploader.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if (process.env.COVERALLS_URL_BASE) {
99
url = 'https://coveralls.io/api/v1/jobs';
1010
}
1111

12-
fs.readFile('../tests/coverage.json',function (err,data) {
12+
fs.readFile('../old_tests/coverage.json',function (err,data) {
1313
if (err) {
1414
return console.log(err);
1515
}
@@ -19,13 +19,13 @@ fs.readFile('../tests/coverage.json',function (err,data) {
1919
if (process.env.COVERALLS_REPO_TOKEN) {
2020
req.repo_token = process.env.COVERALLS_REPO_TOKEN;
2121
}
22-
22+
2323
for (var i in req.source_files) {
2424
req.source_files[i].source_digest = md5File.sync("../" + req.source_files[i].name);
2525
}
2626

2727
var requestStr = JSON.stringify(req);
28-
28+
2929
request.post({url : url, form : { json:requestStr}}, function(err, response, body){process.stdout.write(body);});
3030

31-
});
31+
});

.travis/run_old_tests.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
set -ev
44

5+
cd old_tests
6+
57
"$SQLCLI" $UT3_OWNER/$UT3_OWNER_PASSWORD@//$CONNECTION_STR <<SQL
6-
cd tests
78
@RunAll.sql
89
exit
910
SQL
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)