forked from smalruby/smalruby3-gui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (41 loc) · 1.07 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
language: node_js
sudo: required
dist: xenial
addons:
chrome: stable
node_js:
- 10
env:
global:
- CHROMEDRIVER_VERSION=LATEST
- NODE_ENV=production
- NODE_OPTIONS=--max-old-space-size=7250
- NPM_TAG=latest
cache:
directories:
- node_modules
before_install:
# package-lock.json was introduced in npm@5
- '[[ $(node -v) =~ ^v9.*$ ]] || npm install -g npm@latest' # skipped when using node 9
install:
- rm -rf node_modules/scratch-vm
- npm --production=false install
- (cd node_modules/scratch-vm && npm --production=false install && $(npm bin)/webpack --colors --bail --silent)
script:
- npm run test:lint
- npm run test:unit
- npm run clean && npm run setup-opal && $(npm bin)/webpack --colors --bail --silent
- npm run test:integration
deploy:
- provider: script
on:
branch:
- develop
skip_cleanup: true
script: npm run deploy -- -x -r https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git
- provider: script
on:
branch:
- develop
skip_cleanup: true
script: npm run deploy:smalruby.app -- -x -r https://${GH_TOKEN}@github.com/smalruby/smalruby.app.git