-
Notifications
You must be signed in to change notification settings - Fork 14
/
.travis.yml
42 lines (33 loc) · 1 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
branches:
only:
- master
dist: trusty
sudo: required
language: node_js
node_js:
- "10.15.0"
env:
global:
- GH_REPO=https://${GH_TOKEN}@github.com/herotc/bfa.herodamage.com.git
- GH_SOURCE_BRANCH=master
- GH_TARGET_BRANCH=gh-pages
- NODE_ENV=production
- BASE_URL=https://bfa.herodamage.com
# The number of file changes required to deploy, put the number of files generated on build + 1
- DEPLOY_THRESHOLD=1
cache:
directories:
- "node_modules"
before_install:
- node --version
- npm --version
install:
# npm ci may not work due to npm ls failing whenever optional dependencies are in the package-lock.json
# but cannot be installed (due to linux/osx/windows different requirements)
- npm install --production=false # production is set to false to install devDependencies required to build
before_script:
- chmod +x ./scripts/ci/build.sh
- chmod +x ./scripts/ci/deploy.sh
script:
- travis_wait 50 ./scripts/ci/build.sh
- travis_wait 50 ./scripts/ci/deploy.sh