-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
53 lines (43 loc) · 1.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
43
44
45
46
47
48
49
50
51
52
53
language: node_js
node_js: --lts
cache:
- yarn
- directories:
- .cache
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH="$HOME/.yarn/bin:$PATH"
- git config --global user.name 'JounQin'
- git config --global user.email 'admin@1stg.me'
install: yarn --frozen-lockfile
before_script:
- export TRAVIS_REPO_OWNER=${TRAVIS_REPO_SLUG%/*}
- export TRAVIS_REPO_NAME=${TRAVIS_REPO_SLUG#*/}
script:
- yarn lint
#- yarn test
- yarn build
after_success:
- yarn global add codecov
- codecov
before_deploy: yarn build:example --public-url /$TRAVIS_REPO_NAME/
deploy:
- provider: script
skip_cleanup: true
script: bash deploy.sh
on:
branch: master
- provider: pages
skip_cleanup: true
email: admin@1stg.me
name: JounQin
github_token: $GH_TOKEN
keep_history: true
allow_empty_commit: false
local_dir: dist
on:
branch: master
after_script:
- yarn add -D @codechecks/client @codechecks/build-size-watcher @codechecks/commit-deployment @codechecks/type-coverage-watcher
- yarn build:example
- yarn codechecks