-
Notifications
You must be signed in to change notification settings - Fork 28
/
config.yml
117 lines (108 loc) · 3.48 KB
/
config.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
version: 2
jobs:
build_wallet:
macos:
xcode: "12.2.0"
steps:
# Checkout repo
- checkout
# Save/Restore cache
#- save_cache:
# key: wallet_cache
# paths:
# - node_modules
# - ~/.npm
# - ~/.meteor
#- restore_cache:
# key: wallet_cache
# Install dependencies
- run:
name: Install dependencies
command: |
npm install -g n
sudo n 8.11.4
brew update
brew cleanup
# brew cask install google-chrome
# brew cask install chromedriver
# Prepare app
- run:
name: Install meteor v1.8.0.2
command: |
if [ -d ~/.meteor ]; then sudo ln -s ~/.meteor/meteor /usr/local/bin/meteor; fi
if [ ! -e $HOME/.meteor/meteor ]; then curl https://install.meteor.com/?release=1.8.0.2 | sh; fi
# - run:
# name: update npm to latest
# command: |
# npm i npm@latest -g
- run:
name: install snyk globally
command: |
npm i snyk -g && sudo chown -R $USER:$(id -gn $USER) /Users/distiller/.config
- run:
name: install dependencies
command: |
rm package-lock.json && rm .electrify/package-lock.json && npm install
- run:
name: install electrify-qrl globally
command: |
npm install -g electrify-qrl
- run:
name: report meteor node version
command: |
meteor node -e 'console.log("I am Node.js %s!", process.version);'
# Start meteor in background
#- run:
# name: Start Meteor
# command: |
# meteor npm install --unsafe-perm
# npm run dev
# background: true
# Run unit tests
#- run:
# name: Run selenium tests
# command: |
# until curl --max-time 300 http://localhost:3000/; do sleep 1; done
# #npm install -g chimp
# #npm install -g selenium-standalone
# #/usr/local/Cellar/node/8.7.0/bin/chimp --ddp=http://localhost:3000 --browser=chrome --path=tests
# Create package on master
- deploy:
command: |
if [ "${CIRCLE_BRANCH}" == "master" ]; then
npm install -g electrify-qrl
npm install
export NODEPATH=/usr/local/Cellar/node/8.7.0
export PATH="$NODEPATH/bin:$PATH"
# Package Electron App
npm run cleanDist
npm run releaseready
npm run build
# Build Macos DMG
npm run installer
# Clear Electron build folder
rm -rf ./.electrify/.dist/QRLWallet-darwin-x64
fi
if [ "${CIRCLE_BRANCH}" == "devnet" ]; then
npm install -g electrify-qrl
npm install
export NODEPATH=/usr/local/Cellar/node/8.7.0
export PATH="$NODEPATH/bin:$PATH"
# Package Electron App
npm run cleanDist
npm run releaseready
npm run build
# Build Macos DMG
npm run installer
# Clear Electron build folder
rm -rf ./.electrify/.dist/QRLWallet-darwin-x64
fi
# Save artifacts
- store_artifacts:
path: .electrify/.dist/
destination: build
workflows:
version: 2
build_all:
jobs:
- build_wallet