You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added pyproject.toml, improved mkdocs.md, and fixed travis builds so that deployment works again. Added python 3.8 in the builds. Deploy env is now 3.7
# now done in a dedicated script to capture exit code 1 and transform it to 0
51
+
# ***tests+coverage*** done in a dedicated script to capture exit code 1 and transform it to 0
44
52
- chmod a+x ./ci_tools/run_tests.sh
45
53
- sh ./ci_tools/run_tests.sh
46
-
- python ci_tools/generate-junit-badge.py 100 # generates the badge for the test results and fail build if less than x%
54
+
# generate the badge for the test results and fail build if less than x%
55
+
- python ci_tools/generate-junit-badge.py 100
47
56
48
57
after_success:
49
-
# ***reporting***
50
-
# - junit2html junit.xml testrun.html output is really not nice
58
+
# ***reporting***
59
+
# - junit2html junit.xml testrun.html output is really not nice
51
60
- ant -f ci_tools/generate-junit-html.xml # generates the html for the test results. Actually we dont use it anymore
52
61
- codecov
53
-
# - pylint getversion # note that at the moment the report is simply lost, we dont transform the result into anything
62
+
# - pylint getversion # at the moment the report would be simply lost, we dont transform the result into anything
54
63
# ***documentation***
55
64
- mkdocs build -f docs/mkdocs.yml
56
65
- mv reports/junit docs/ # not in site/ anymore so that we do not need to use --dirty (it breaks client-side search)
@@ -69,7 +78,7 @@ after_success:
69
78
git fetch gh-remote && git fetch gh-remote gh-pages:gh-pages; # make sure we have the latest gh-remote
70
79
# push but only if this is not a build triggered by a pull request
71
80
# note: do not use the --dirty flag as it breaks client-side search
72
-
if [ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ "${TRAVIS_PYTHON_VERSION}" = "3.5" ]; then echo "Pushing to github"; PYTHONPATH=getversion/ mkdocs gh-deploy -v -f docs/mkdocs.yml --remote-name gh-remote; git push gh-remote gh-pages; fi;
81
+
if [ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ "${DEPLOY_ENV}" = "true" ]; then echo "Pushing to github"; PYTHONPATH=getversion/ mkdocs gh-deploy -v -f docs/mkdocs.yml --remote-name gh-remote; git push gh-remote gh-pages; fi;
73
82
else
74
83
echo "File 'ci_tools/github_travis_rsa' has not been created, please check your encrypted repo token in .travis.yml, on the line starting with 'openssl aes-256-cbc...'"
0 commit comments