Skip to content
This repository was archived by the owner on Aug 5, 2021. It is now read-only.

Commit f0da0cf

Browse files
committed
upload wheels to bc FTP server
1 parent b3048a6 commit f0da0cf

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.travis.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
language: python
22
sudo: 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

614
matrix:
@@ -55,3 +63,9 @@ before_script:
5563

5664
script:
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

ci/travis/upload-to-ftp.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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"

0 commit comments

Comments
 (0)