This repository has been archived by the owner on Jun 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
57 lines (51 loc) · 1.44 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
# Configuration file Travis CI
# Author - Mihir Pathak
#
# Consists of 2 jobs -
# - Linux environment builds for debian
# - OSX builds for Mac and Windows
# Build with Node JS 8 [9+ causes fsevetns build to crash in darwin]
language: node_js
node_js: "8"
# Job for building
jobs:
include:
- if: tag IS present
os: linux
dist: trusty
- if: tag IS present
os: osx
osx_image: xcode9.3
# Global environment variables
env:
global:
- ELECTRON_CACHE=$HOME/.cache/electron
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
# Cache directorries
cache:
directories:
- node_modules
- $HOME/.cache/electron
- $HOME/.cache/electron-builder
# Perform build [win32's exe and darwin's dmg in osx and linux's deb in linux]
script:
- echo "Initializing app files..."
- yarn init-app
- echo "Compiling React app for production"
- yarn build
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
echo "Packaging Audius for Linux x64 (.deb)";
chmod a+x bin/ffmpeg/linux/ffmpeg;
chmod a+x bin/rainbow/linux/rainbow;
yarn package-linux;
fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
echo "Packaging Audius for MacOS X (.dmg)";
chmod a+x bin/ffmpeg/darwin/ffmpeg;
chmod a+x bin/rainbow/darwin/rainbow;
yarn package-mac;
echo "Packaging Audius for Windows x64 (.exe)";
yarn package-win;
fi
after_success:
- echo "Build completed, uploaded artifacts (if any)"