This repository has been archived by the owner on Aug 19, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
104 lines (88 loc) · 2.93 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
language: python
cache: pip
script:
# - python -m virtualenv venv
# - source venv/bin/activate
# Workaround for installing PyInstaller
- which python
- which pip
- whereis python
- whereis pip
- python --version
- pip --version
- pip install pip==18.1
- pip install -r requirements.txt
- pip show pyinstaller
- which pyinstaller
- whereis pyinstaller
- git clone https://github.com/shared-systems/PLUTO.git src/main/python/pluto
- cp base_template.json src/build/settings/base.json
- python -m fbs freeze
- python -m fbs installer
matrix:
include:
# Tests Python 3.6 on Ubuntu Trusty
# - python: 3.6
# - python: 3.7 # as of 8/17.18 3.7 is still being worked on by the travis team
# dist: trusty
# sudo: true
# Tests Python 3.6 and 3.7 on Ubuntu Xenial
- python: "3.6"
# - python: 3.7
dist: xenial
sudo: true
# MacOs
# See https://docs.travis-ci.com/user/reference/osx/#os-x-version for details
# # 10.10.latest As of 1/18/19 Travis no longer support this version outright
# - os: osx
# language: generic
# osx_image: xcode6.4
#
# # 10.11.latest
# - os: osx
# language: generic
# osx_image: xcode8
#
# # # 10.12.latest
# - os: osx
# language: generic
# osx_image: xcode9.2
#
# # 10.13.latest
# - os: osx
# language: generic
# osx_image: xcode10
# Perform manual install of 3.6 for OS X
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
# `brew upgrade` installs 3.7 which isn't supported so don't do that
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew upgrade python ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] && ! [[ -x "$(command -v pyenv)" ]]; then brew install pyenv ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then pyenv install 3.6.3 ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then PATH="~/.pyenv/versions/3.6.3/bin:$PATH" ; fi
# Have to add pyinstaller to path manually?
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then PATH="~/.pyenv/versions/3.6.3/lib/python3.6/site-packages:$PATH" ; fi
# Install `fpm` on linux
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install ruby ruby-dev build-essential ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then gem install --no-document fpm ; fi
before_deploy:
# Set up git user name and tag this commit
- git config --local user.name "Sam Gomena"
- git config --local user.email "[email protected]"
- export TRAVIS_TAG=${TRAVIS_TAG:-$(date +'%Y_%m_%d_%H-%M-%S')-$(git log --format=%h -1)}
- git tag $TRAVIS_TAG
deploy:
- provider: releases
api_key: "$GITHUB_DEPLOY_KEY"
file:
- "target/Pluto.deb"
skip_cleanup: true
on:
tags: true
- provider: releases
api_key: "$GITHUB_DEPLOY_KEY"
file:
- "target/Pluto.dmg"
skip_cleanup: true
on:
tags: true