forked from enactjs/sandstone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (34 loc) · 1.29 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
dist: focal
language: node_js
node_js:
- lts/*
- node
sudo: false
before_install:
- sudo apt-get update
- sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
install:
- npm config set prefer-offline false
- npm install -g enactjs/cli#develop
- npm install -g codecov
- git clone --branch=develop --depth 1 https://github.com/enactjs/enact ../enact
- pushd ../enact
- npm install
- npm run lerna exec -- --ignore enact-sampler --concurrency 1 -- npm --no-package-lock install
- npm run lerna exec -- --ignore enact-sampler --concurrency 1 -- npm --no-package-lock link
- npm run lerna link
- popd
- rm -fr node_modules/@enact
- npm install
- enact link
script:
- echo -e "\x1b\x5b35;1m*** Starting tests...\x1b\x5b0m"
- npm test -- --runInBand --coverage
- codecov
- echo -e "\x1b\x5b35;1m*** Tests complete\x1b\x5b0m"
- echo -e "\x1b\x5b35;1m*** Starting eslint...\x1b\x5b0m"
- npm run lint -- -- --report-unused-disable-directives --max-warnings 0 .
- echo -e "\x1b\x5b35;1m*** eslint complete\x1b\x5b0m"
- echo -e "\x1b\x5b35;1m*** Starting docs validation...\x1b\x5b0m"
- npm run validate-docs
- echo -e "\x1b\x5b35;1m*** Docs validation complete\x1b\x5b0m"