-
Notifications
You must be signed in to change notification settings - Fork 25
/
.travis.yml
36 lines (35 loc) · 1.15 KB
/
.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
language: python
matrix:
include:
- os: osx
language: generic
- os: linux
sudo: required
python: 3.6
before_install:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then chmod ugo+x ./travis-scripts/pre_install.linux.sh; ./travis-scripts/pre_install.linux.sh ;fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then chmod ugo+x ./travis-scripts/pre_install.macos.sh; ./travis-scripts/pre_install.macos.sh ;fi
install:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then chmod ugo+x ./travis-scripts/install.linux.sh; ./travis-scripts/install.linux.sh ;fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then chmod ugo+x ./travis-scripts/install.macos.sh; ./travis-scripts/install.macos.sh ;fi
script: true
deploy:
- provider: releases
api_key:
secure: $GITHUB_API_KEY
file:
- "dist/telegram_messages_dump_linux.tar.gz"
- "dist/telegram_messages_dump_windows.zip"
skip_cleanup: true
on:
tags: true
condition: $TRAVIS_OS_NAME = "linux"
- provider: releases
api_key:
secure: $GITHUB_API_KEY
file:
- "dist/telegram_messages_dump_darwin.tar.gz"
skip_cleanup: true
on:
tags: true
condition: $TRAVIS_OS_NAME = "osx"