This repository was archived by the owner on Aug 5, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed
Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change 11language : python
22sudo : false
33
4+ env :
5+ global :
6+ - FTP_USER=jpy
7+ - FTP_HOST=ftp.brockmann-consult.de
8+ # using http://rkh.github.io/travis-encrypt/public/index.html
9+ # FTP_PASSWORD
10+ - secure : g9l0Ksk3qu/+KF2ihaIHLujQdjA4yAtZz8Jlmw80xq0sIq7Lqlqd7Bm98Hkcg+Zdtv8NPCGXmoemfDm48j+lUKluOlnWB9gsWkheWnqG8B8mdzA1QZXGzp32yA3fhWVTkeKbpF4ewcorkR4NfIT/j/BlbeGLQKhLyl8C4DwqpTim7WMHONaStpoEKDK71U2+5uPZ9nERhsEO6M7HBgN+HfkcXihML2YdoHRt8d8FTswgzq4SNe/jgxVLSFoBUS09xHVYIU+oGcNTkcmSb4tgaXgPb83dh6mDR8GtrECRlYK3ZjrVocTp7cC+FdThhMoyfLNcN+Txsep2X98JMLH6BuvIINDdGDoGLUtqf/XVUWi00nSDneQPyHcsr1peovK/CMjq0TMHKp6P2UJVPGZ00aelBXfusfpbh59WeCfDQaOgObZYEJIYav3u27fa8I+0k41Wf11IxUig/jX+0IX4JiIjTBe/0lDxENb0gKBcAbjxjYUAM/Or8RAXRvmf7vFuJpO2n31qFCz7oKT2gzsjDFXyMsNeaWg4YFLZJ+iUjxHUyCg+vyPONohLQjyCUro9fH+dMMyNlM4YvpDjI969EUGnSvkPGtrNHtuuO6ZcOUoZ9xnZpB1nX0XNwXttW0ZDPvFZvDoW0umT1M51l2M8DYg/nh5CpkSMKxfofRs2/No=
11+
412# matrix start ###################################
513
614matrix :
@@ -55,3 +63,9 @@ before_script:
5563
5664script :
5765 - bash ./ci/travis/run.sh
66+
67+ after_success :
68+ # only publish artifacts on master branch when pushed (not from cron or PRs)
69+ - if [ "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_EVENT_TYPE" = "push" ]; then
70+ bash ./upload-to-ftp.sh;
71+ fi
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ function upload_ftp {
4+ echo Uploading ${1} : ${2}
5+ curl --ftp-create-dirs -T $2 -u " $FTP_USER :$FTP_PASSWORD " " ftp://$FTP_HOST /software/$TRAVIS_OS_NAME /"
6+ }
7+
8+ echo " success pushing artifacts to FTP..."
9+ upload_ftp " wheel" " dist/*.whl"
You can’t perform that action at this time.
0 commit comments