-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
.travis.sh
executable file
·44 lines (35 loc) · 1.04 KB
/
.travis.sh
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
#!/bin/bash
#
# travis continuous integration build script for
# EmuConfigurator
## build
# install dependencies
yarn --frozen-lockfile || exit $?
yarn gulp clean-release
# build releases for each platform
case "${TRAVIS_OS_NAME}" in
linux)
yarn gulp release --chromeos
yarn gulp release --linux64
;;
osx)
yarn gulp release --osx64
;;
windows)
yarn gulp mrelease --win32
yarn gulp mrelease --win64
;;
*)
echo "platform ${TRAVIS_OS_NAME} not supported for now."
exit 2
;;
esac
ls -lsa release/
## bintray
# get version string from 'package.json'
export CONFIGURATOR_VERSION="$(cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[ ",]//g')"
# compose string to reference the package
export PACKAGE_VERSION="${CONFIGURATOR_VERSION}-${TRAVIS_BUILD_NUMBER}-${TRAVIS_OS_NAME}-${TRAVIS_BRANCH}"
# process template for pushing to bintray ('deploy' step on travis will pick it up)
j2 bintray-template.j2 -o bintray-conf.json
exit 0