This repository was archived by the owner on Dec 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathconfig.yml
More file actions
59 lines (58 loc) · 1.65 KB
/
config.yml
File metadata and controls
59 lines (58 loc) · 1.65 KB
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
version: 2
jobs:
build:
environment:
XCODE_SCHEME: test
XCODE_WORKSPACE: test
XCODE_PROJECT: test
NODE_VERSION: '10.2.1'
macos:
xcode: 8.3.3
steps:
- checkout
- run:
name: Update submodules
command: git submodule update --init
- restore_cache:
key: node-{{ .Environment.NODE_VERSION }}
- restore_cache:
key: emsdk-{{ checksum "script/install-emscripten.sh" }}
- run:
name: Install Node.js with nvm
command: |
export NVM_DIR=${HOME}/.nvm
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
[ -s "${NVM_DIR}/nvm.sh" ] && \. "${NVM_DIR}/nvm.sh"
nvm install ${NODE_VERSION}
nvm alias default ${NODE_VERSION}
echo "[ -s \"${NVM_DIR}/nvm.sh\" ] && . \"${NVM_DIR}/nvm.sh\"" >> $BASH_ENV
- run:
name: Install node dependencies
command: npm install
- run:
name: Build with emscripten
command: script/install-emscripten.sh
- save_cache:
key: node-{{ .Environment.NODE_VERSION }}
paths:
- .nvm
- save_cache:
key: emsdk-{{ checksum "script/install-emscripten.sh" }}
paths:
- .emscripten_cache
- emsdk-portable
- run:
name: Build emscripten
command: npm run build:browser
- run:
name: Lint JavaScript
command: npm run standard
- run:
name: Test Browser
command: npm run test:browser
- run:
name: Test Node.js
command: npm run test:node
- run:
name: Test native
command: npm run test:native