forked from artisan-roaster-scope/artisan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
66 lines (55 loc) · 1.39 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
language: python
# safelist
branches:
only:
- gh-pages
- master
addons:
apt:
packages:
- fakeroot
matrix:
allow_failures:
- env: ARTISAN_OS=rpi
include:
- os: linux
python: 3.7
sudo: required
dist: xenial
cache:
- pip
- bundler
env:
- ARTISAN_OS=linux
- os: linux
language: generic
sudo: required
dist: xenial
env:
ARTISAN_OS=rpi
- os: osx
python: 3.7
language: generic
cache:
- pip
env:
- ARTISAN_OS=osx
install:
- export GIT_VERSION=`git rev-parse --verify --short HEAD 2>/dev/null|| echo "???"`
- sed -i'' -e "s/__revision__ = '0'/__revision__ = '$GIT_VERSION'/" src/artisanlib/__init__.py
- .travis/install-${ARTISAN_OS}.sh
before_script:
- ulimit -c unlimited -S
after_failure:
- find . -name "core*"
- file src/core
- gdb -c src/core `which python3` -ex "thread apply all bt" -ex "set pagination 0" -batch
script:
- .travis/script-${ARTISAN_OS}.sh
after_success:
- cd src
- curl -L -O https://github.com/probonopd/uploadtool/raw/master/upload.sh
- export UPLOADTOOL_BODY="WARNING: pre-release builds may not work. Use at your own risk."
- if [ "$ARTISAN_OS" = "osx" ]; then bash upload.sh artisan*.dmg; fi
- if [ "$ARTISAN_OS" = "rpi" ]; then bash upload.sh artisan*.deb; fi
- if [ "$ARTISAN_OS" = "linux" ]; then bash upload.sh artisan*.rpm artisan*.deb; fi