-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
40 lines (39 loc) · 995 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
sudo: required
language: ruby
dist: xenial
services:
- docker
addons:
apt:
sources:
- sourceline: "ppa:kimura-o/ppa-tmux"
packages:
- tmux
- python3
stages:
- name: tests
- name: mkrelease
if: |
branch = master \
AND type != pull_request
jobs:
include:
- stage: tests
script:
- make test
- stage: mkrelease
install:
- wget --quiet -O /tmp/mkrelease.sh https://raw.githubusercontent.com/rockandska/scripts/${MKRELEASE_REF:-master}/CI/mkrelease.sh
- chmod +x /tmp/mkrelease.sh
- wget --quiet -O /tmp/pubrelease.sh https://raw.githubusercontent.com/rockandska/scripts/${PUBRELEASE_REF:-master}/CI/pubrelease.sh
- chmod +x /tmp/pubrelease.sh
script:
- TRAVIS_TAG=$(/tmp/mkrelease.sh || travis_terminate 1)
- export TRAVIS_TAG
deploy:
provider: script
script: /tmp/pubrelease.sh
skip_cleanup: true
on:
tags: true