-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
71 lines (62 loc) · 2.89 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
language: python
os: linux
dist: bionic
sudo: required
matrix:
include:
- name: "Python 3.7.1 on Xenial Linux"
python: 3.6 # this works for Linux but is ignored on macOS or Windows
# - name: "Python 3.7.4 on macOS"
# os: osx
# osx_image: xcode11 # Python 3.7.4 running on macOS 10.14.4
# language: shell # 'language: python' is an error on Travis CI macOS
# - name: "Python 3.7.4 on Windows"
# os: windows # Windows 10.0.17134 N/A Build 17134
# language: shell # 'language: python' is an error on Travis CI Windows
# before_install:
# - choco install python
# - python -m pip install --upgrade pip
# env: PATH=/c/Python37:/c/Python37/Scripts:$PATH
sudo: required
before_install:
# Install wine for packaging FlightDeck for Windows:
- sudo dpkg --add-architecture i386
- wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
- sudo apt-add-repository -y 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
- sudo add-apt-repository -y ppa:cybermax-dexter/sdl2-backport
- sudo apt-get update
- sudo apt-get install -y --install-recommends winehq-stable
- sudo apt-get install -y zip
install:
- pip3 install --upgrade pip
- ./ground.py build
script:
- echo "Tests will go here"
before_deploy:
- ./ground.py deploy-linux
- ./ground.py deploy-mac
- ./ground.py deploy-win
- cd ./node_projects/ui/release-builds
- zip -r FlightDeck-linux-x64.zip FlightDeck-linux-x64
- zip -r FlightDeck-darwin-x64.zip FlightDeck-darwin-x64
- zip -r FlightDeck-win32-x64.zip FlightDeck-win32-x64
- cd ../../..
- git config --local user.name UAS@UCLA
- git config --local user.email unmannedsystems.ucla@gmail.com
- 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:
secure: d09GH/Cz5+WUAmUCNkWI8L/T355VdjulzE+DwvpVFKMEx/NZbyJIBP2Qs+u7UkrZMw33SGAGSCSdPFksaYGYtGAdNVBKwvGqTGJyp4qxyx95Ro7vP79tsitk/+wfNxhPnjxnYkFRcE0EZ90/oZpAvnj1tdudSqnS104xAPV7ebWMZETqr8wNETu+mrrKM8rStFPW0KUmBFm+5SHvwajRTJivBMDxu02dtI769it/dZKGfROabHBZUw4an3Qxy0LM1RENrdNEThIQyMYtWSFa81FKlIwQqCxt2BKnyISENBkPz29sd9TIUYfHPVYs5viaC5aDj5tta3kVXMYYdMNatyHUnBpHScoV6P+BFeOltgnWQfUBc7xOfSwn8+B2QgEnPpt6Jit/InQ+PwCBO4SkExU0KhMQy8+5kLR19sTxibmnqpXusS4RrghLaXWzBjkpmyUlVr5GbPCwDACEIDijA90/NEQ0brxPX5JWA1ipvC4HdFzQmpW4/B0F6PA4DDQs5YUNmXpcTKLBHSdE3laAZRF9zf2xri4c+1cKYbNH4rkJlrLLJFr6QtR0i0Njewf56MzMgSf+7d3OlwwrBnHj2vp2sD3uaLk1iWNJe4VE5pXvgh9KeB24TNpfnTrpsXlKHhi7QsKt7Pex7JnhOTANjosPlR7rF8JZ8NPHC/U4pUY=
file:
- "./node_projects/ui/release-builds/FlightDeck-darwin-x64.zip"
- "./node_projects/ui/release-builds/FlightDeck-linux-x64.zip"
- "./node_projects/ui/release-builds/FlightDeck-win32-x64.zip"
# on:
# repo: uas-at-ucla/ground-station
# branch:
# only:
# - alfred
skip_cleanup: true
draft: true