-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.travis.yml
49 lines (46 loc) · 1.35 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
os:
- linux
- osx
language: node_js
node_js:
- '12'
# - '10'
dist: xenial
sudo: required
services:
- xvfb
before_script:
# Replace clientId and clientSecret values in app-config.js with environment
# variable values.
- export NODE_OPTIONS=–max_old_space_size=8096
# - cd eapp/config/
# - sed -i -e "s/exports.clientId = ''/exports.clientId = \"$clientId\"/g" app-config.js
# - sed -i -e "s/exports.clientSecret = ''/exports.clientSecret = \"$clientSecret\"/g" app-config.js
# - cd ../../
# removed this: -e clientId=${clientId} \
# -e clientSecret=${clientSecret} \ bellow
script:
- |
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
docker run --rm \
-e TRAVIS=$TRAVIS \
-e TRAVIS_SECURE_ENV_VARS=$TRAVIS_SECURE_ENV_VARS \
-e GH_TOKEN=${GH_TOKEN} \
-v $(pwd):/project \
-v ~/.cache/electron:/root/.cache/electron \
-v ~/.cache/electron-builder:/root/.cache/electron-builder \
electronuserland/builder:wine \
bash -c "
npm install \
&& npm run electron:linux && npm run electron:windows "
else
# Code signing for macOS is not available in Docker, so we build on macOS.
# yarn dist --mac
npm run electron:mac
fi
#ls dist/
before_cache:
- rm -rf $HOME/.cache/electron-builder/wine
branches:
except:
- "/^v\\d+\\.\\d+\\.\\d+$/"