forked from ChainSafe/lodestar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
65 lines (58 loc) · 1.49 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
language: node_js
node_js:
- "lts/*"
cache:
yarn: true
directories:
- node_modules
- packages/lodestar/node_modules
- packages/benchmark-utils/node_modules
- packages/eth2.0-config/node_modules
- packages/eth2.0-params/node_modules
- packages/eth2.0-spec-test-util/node_modules
- packages/eth2.0-types/node_modules
- packages/eth2.0-utils/node_modules
- packages/lodestar/node_modules
- packages/ssz/node_modules
- packages/ssz-type-schema/node_modules
before_install:
- |
if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(.md)|(.html)|^(LICENSE)|^(docs)|(.github)'
then
echo "Only docs were updated, not running CI!"
travis_terminate 0
fi
install:
- lerna bootstrap
jobs:
include:
- stage: Lint and Check types
name: Check types
script: lerna run check-types && lerna run lint
- stage: Tests
name: Unit
script: lerna run test:unit && lerna run coverage
-
name: e2e
script: lerna run test:e2e
-
name: spec-minimal
if: branch != master || type = pull_request
script:
- lerna run test:spec-min
-
name: spec-full
if: branch = master AND type != pull_request
script:
- lerna run test:spec
before_deploy:
- lerna run build:release
- node scripts/collect-docs.js
deploy:
provider: pages
skip_cleanup: true
github_token: $GH_PAGES_TOKEN
keep_history: true
local_dir: docs
on:
branch: master