diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2018-02-17 10:48:39 -0800 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2018-02-17 10:48:39 -0800 |
commit | a225e7650892ecc1e672bcaf95dff0d598682583 (patch) | |
tree | 8dc8ca425bc9d74a1002aa862a60cdbf82bacf9b /ci/on-master.py | |
parent | 7f2b6e2d5015654954376639706543502a377844 (diff) | |
download | mill-a225e7650892ecc1e672bcaf95dff0d598682583.tar.gz mill-a225e7650892ecc1e672bcaf95dff0d598682583.tar.bz2 mill-a225e7650892ecc1e672bcaf95dff0d598682583.zip |
extract on-master.py from release script, tweak docs
Diffstat (limited to 'ci/on-master.py')
-rwxr-xr-x | ci/on-master.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ci/on-master.py b/ci/on-master.py new file mode 100755 index 00000000..9199f56b --- /dev/null +++ b/ci/on-master.py @@ -0,0 +1,10 @@ +#!/usr/bin/env python + +import os, sys, subprocess +is_master_commit = ( + os.environ["TRAVIS_PULL_REQUEST"] == "false" and + (os.environ["TRAVIS_BRANCH"] == "master" or os.environ["TRAVIS_TAG"] != "") +) + +if is_master_commit: + subprocess.check_call(sys.argv[1:]) |