mirror of
https://github.com/athityakumar/colorls.git
synced 2024-09-19 05:31:23 +02:00
4ffd056c15
When building a tag on travis, the tag name is used as the branch. By default, only the `master` branch triggers a deployment, so for a version tag the deployment to rubygems will be skipped. This commit fixes it, by directly matching on the `TRAVIS_BRANCH` and `TRAVIS_TAG` variables.
71 lines
1.9 KiB
YAML
71 lines
1.9 KiB
YAML
conditions: v1
|
|
|
|
if: branch = master OR tag IS present
|
|
|
|
language:
|
|
ruby
|
|
|
|
cache:
|
|
bundler
|
|
|
|
rvm:
|
|
- '2.3'
|
|
- '2.4'
|
|
- '2.5'
|
|
- '2.6'
|
|
|
|
before_install:
|
|
- gem update --system
|
|
- gem --version
|
|
- gem install bundler -v '~> 2'
|
|
|
|
script:
|
|
- bundle exec rubocop
|
|
- bundle exec rake spec
|
|
- bundle exec rake install
|
|
- bundle binstubs colorls
|
|
- PATH=$PWD/bin:$PATH
|
|
- colorls
|
|
- colorls -1
|
|
- colorls -a
|
|
- colorls -A
|
|
- colorls -d
|
|
- colorls -f
|
|
- colorls -l
|
|
- colorls -l spec/fixtures/symlinks
|
|
- ( cd spec/fixtures ; colorls .hidden-file ) | fgrep '.hidden-file'
|
|
- colorls -l README.md
|
|
- colorls -r
|
|
- colorls --sd
|
|
- colorls --sf
|
|
- colorls --hyperlink
|
|
- colorls -t
|
|
- colorls --sort=time
|
|
- colorls -U
|
|
- colorls --sort=none
|
|
- colorls -S
|
|
- colorls --sort=size
|
|
- colorls -h
|
|
- colorls --gs
|
|
- colorls spec/fixtures/symlinks
|
|
- colorls README.md
|
|
- colorls *
|
|
- colorls | grep /
|
|
- colorls --color
|
|
- colorls --color=auto
|
|
- colorls --color=never
|
|
- colorls --color=always
|
|
- colorls --tree
|
|
- colorls --tree=1
|
|
|
|
deploy:
|
|
provider: rubygems
|
|
api_key:
|
|
secure: iHo85pvy3iIp0/r8mbP0q0VPCFyYcwaQb19YUxwIGbMrksswIJPe2bsdAQTvd1fU3U+uwAgyzfaLMWgY6T1evVjv5GGXW0zmNthgWuaCbTBmzx3q6OPV6zJLsinKSJ4xbKjmTOi6BIhXTtc09dRRNp1d9U8HtmM9KyvD5ORm5M9W0/WxP3+8oOe0/yl3DOVNgCQ0j64KEqowLlfdJXe2q5iSUkZEvf+o5F6pz0g7dFiVHPVpJbZ9sOchPzYNMjLCx4jPt42J806oAH7TMeRC4lFpKgJr9U05LRGb22jiokHH6gl17RpuGRYJIexWkf3jb5iy9bivT2S2fGo9/BBKO5BvQAaL7McCwpdKM2QEyVy7RVbUz5D8vfXkJNIJankQj3Ikuz7qYyDglucGCpSGjecNCqL61NoBag7ORJ0RMWg7zklKjR59zeT4oks8rByx688y5Oi4f9Z98SPfc9NIJbHxbrDHtr13gm509cEXxwOLuVePa9J+mDGq2Uawi/PuIon1x2ztHUgvTx0DSYtwv96HzXet8QqXHwRKKjddxEApvCvGvaJV3akeUVjcsyei892ajHP6CffaKazPtogotfsu68g8WmKFWHFRkdmS6NIqg7MrnMRCjDkxAoQYYzt6cl95aBk4G7CTbjtXgIct1LGMM/WjE6K/jpeF0YLsVR4=
|
|
gem: colorls
|
|
on:
|
|
all_branches: true
|
|
condition: $TRAVIS_BRANCH = master || $TRAVIS_TAG =~ ^v[0-9][.]
|
|
repo: athityakumar/colorls
|
|
rvm: '2.6'
|
|
os: linux
|