@@ -18,7 +18,7 @@ addons:
18
18
19
19
# Versions of node.js to test
20
20
node_js :
21
- - " 7 "
21
+ - " 8 "
22
22
23
23
24
24
# Specific Environment Variables
@@ -27,35 +27,41 @@ matrix:
27
27
- os : linux
28
28
env :
29
29
- PACKAGE_OS=linux64
30
- - OUTPUT_BASE=Configurator
31
30
- PACKAGE_NAME=kiibohd-configurator
32
31
- PACKAGE_VERSION=$TRAVIS_TAG
33
32
- PACKAGE_FULLNAME=$PACKAGE_NAME-$PACKAGE_VERSION
34
33
- PLATFORM=linux
35
34
- ARCH=x64
35
+ - GH_TOKEN=$GITHUB_OAUTH_TOKEN
36
36
- os : osx
37
37
env :
38
38
- PACKAGE_OS=macOS
39
- - OUTPUT_BASE=Configurator
40
39
- PACKAGE_NAME=kiibohd-configurator
41
40
- PACKAGE_VERSION=$TRAVIS_TAG
42
41
- PACKAGE_FULLNAME=$PACKAGE_NAME-$PACKAGE_VERSION
43
42
- PLATFORM=darwin
44
43
- ARCH=x64
44
+ - GH_TOKEN=$GITHUB_OAUTH_TOKEN
45
45
46
46
cache :
47
47
directories :
48
48
- node_modules
49
49
- $HOME/.m2
50
+ - $HOME/.boot/cache/bin
51
+ - $HOME/.boot/cache/lib
52
+ - $HOME/bin
50
53
51
54
# Package Setup
52
55
before_install :
53
56
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
54
57
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install tree libusb; fi
55
58
56
-
57
59
# System setup
58
60
install :
61
+ # Setup local bin
62
+ - mkdir -p ~/bin
63
+ - export PATH=~/bin:$PATH
64
+
59
65
# Info about OS
60
66
- uname -a
61
67
@@ -65,43 +71,41 @@ install:
65
71
# Get version of node.js
66
72
- npm --version
67
73
68
- # Get boot-cljs and show version
69
- - wget -O boot https://github.com/boot-clj/boot-bin/releases/download/latest/boot.sh
70
- - chmod 755 boot
71
- - ./ boot -V
74
+ # Get boot-clj and show version
75
+ - wget -O ~/bin/ boot https://github.com/boot-clj/boot-bin/releases/download/latest/boot.sh
76
+ - chmod 755 ~/bin/ boot
77
+ - boot -V
72
78
73
79
# Install electron and dependencies
80
+ - npm install -g node-pre-gyp
74
81
- npm install
75
- - npm run res-install
76
-
77
82
78
83
# Build and packaging
79
84
script :
80
85
# Build clojure target
81
- - ./ boot prod-build
86
+ - boot prod-build
82
87
83
88
# Example deployment file
84
89
- mkdir -p output
85
90
86
91
# Build electron binary
87
- - ./node_modules/.bin/electron-packager target --out=output --platform=$PLATFORM --arch=$ARCH
88
-
89
-
90
- # Deploy release
91
- deploy :
92
- provider : releases
93
- api_key : $GITHUB_OAUTH_TOKEN
94
- skip_cleanup : true
95
- draft : true # XXX Must "publish" on github
96
- prerelease : true # XXX Set this to false to enable a stable release
97
- file_glob : true
98
- file : output/$OUTPUT_BASE-$PLATFORM-$ARCH/*
99
- on :
100
- tags : true
101
- repo : kiibohd/configurator
102
-
103
-
104
- # # Post test script commands
105
- # after_script:
106
- # - tree output
92
+ - ./node_modules/.bin/build --publish onTagOrDraft
93
+
94
+ # # Deploy release
95
+ # deploy:
96
+ # provider: releases
97
+ # api_key: $GITHUB_OAUTH_TOKEN
98
+ # skip_cleanup: true
99
+ # draft: true # XXX Must "publish" on github
100
+ # prerelease: true # XXX Set this to false to enable a stable release
101
+ # file_glob: true
102
+ # file: output/$PACKAGE_NAME-*
103
+ # on:
104
+ # tags: true
105
+ # repo: kiibohd/configurator
106
+
107
+
108
+ # Post test script commands
109
+ after_script :
110
+ - tree output
107
111
0 commit comments