This repository has been archived by the owner on Apr 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
/
.travis.yml
64 lines (62 loc) · 1.66 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
language: python
dist: xenial
env:
global:
- BINARY_VERSION=$(git describe --tags --dirty --always)
jobs:
include:
- stage: Build binaries
os: osx
language: sh
python:
- "3.6"
before_install:
- brew update
- brew install upx
- pip3 install -r ${TRAVIS_BUILD_DIR}/requirements.txt
script:
- ./make-mac.sh
workspaces:
create:
name: mac-binaries
paths:
- ./dist/mac/ODK-XLSForm-Offline.app
- os: windows
language: sh
python:
- "3.6"
before_install:
- choco install python3 --params "/InstallDir:C:\\Python"
- choco install upx --params "/InstallDir:C:\\upx"
- export PATH="/c/Python:/c/Python/Scripts:/c/upx:$PATH"
- pip3 install -r ${TRAVIS_BUILD_DIR}/requirements.txt
script:
- ./make-win.bat
workspaces:
create:
name: windows-binaries
paths:
- ./dist/win/ODK-XLSForm-Offline.exe
- stage: Deploy
os: osx
language: sh
workspaces:
use:
- mac-binaries
- windows-binaries
before_install:
- brew update
- brew install unix2dos
script:
- ./make-dist.sh
- mv ./dist/mac/ODK-XLSForm-Offline-macOS-${BINARY_VERSION}.zip .
- mv ./dist/win/ODK-XLSForm-Offline-Windows-${BINARY_VERSION}.zip .
addons:
artifacts:
paths:
- ./ODK-XLSForm-Offline-macOS-${BINARY_VERSION}.zip
- ./ODK-XLSForm-Offline-Windows-${BINARY_VERSION}.zip
target_paths:
- /xlsform-offline/
debug: true
cache: pip