-
Notifications
You must be signed in to change notification settings - Fork 18
/
.travis.yml
52 lines (47 loc) · 1.51 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
matrix:
include:
- os: linux
sudo: false
language: python
env:
- MAKECMD=lint
- BIN_NAME=appr-$TRAVIS_OS_NAME-x64
- os: linux
sudo: false
language: python
env:
- MAKECMD=test
- BIN_NAME=appr-$TRAVIS_OS_NAME-x64
- os: osx
language: generic
env:
- MAKECMD=test
- BIN_NAME=appr-$TRAVIS_OS_NAME-x64
install:
- if [ "$MAKECMD" == "test" ] ; then pip install https://github.com/ant31/pyinstaller/archive/develop.zip ; fi
- if [ "$MAKECMD" == "test" ] && [ "$TRAVIS_OS_NAME" == "linux" ] ; then pip install -U coveralls ; fi
- pip install -r requirements_dev.txt -U
- pip install jsonnet
- pip install -e .
script:
- PYTHONPATH="." make $MAKECMD
- echo $BIN_NAME
- if [ "$MAKECMD" == "test" ] ; then pyinstaller --add-data "appr/jsonnet/:appr/jsonnet" --onefile bin/appr ; fi
- if [ "$MAKECMD" == "test" ] ; then mkdir -p appr-helm/registry; fi
- if [ "$MAKECMD" == "test" ] ; then mv dist/appr $BIN_NAME; fi
- if [ "$MAKECMD" == "test" ] ; then chmod +x $BIN_NAME; fi
- if [ "$MAKECMD" == "test" ] ; then cp $BIN_NAME appr-helm/registry/appr; fi
- if [ "$MAKECMD" == "test" ] ; then ./$BIN_NAME version quay.io ; fi
after_success:
- if [ "$MAKECMD" == "test" ] && [ "$TRAVIS_OS_NAME" == "linux" ] ; then coveralls ; fi
deploy:
provider: releases
api_key: "$GITHUB_TOKEN"
overwrite: true
file:
- $BIN_NAME
- bin/apprc
skip_cleanup: true
on:
tags: true
condition: $MAKECMD = "test"