Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e2526bb

Browse files
committed
setup travis
1 parent dff9d28 commit e2526bb

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.travis.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
sudo: required
2+
dist: trusty
3+
language: node_js
4+
node_js
5+
- "7.7"
6+
before_install:
7+
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 0.27.5
8+
- export PATH="$HOME/.yarn/bin:$PATH"
9+
cache: yarn

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "",
55
"main": "index.js",
66
"scripts": {
7-
"test": "xo",
7+
"test": "npm run lint",
88
"lint": "prettier 'utils/**/*.js' 'components/**/*.js' 'pages/**/*.js' 'lib/**/*.js' 'hocs/**/*.js' '*.js' --write --single-quote --print-width='80' --trailing-comma='all' && xo --fix",
99
"precommit": "lint-staged",
1010
"analyze": "cross-env ANALYZE=1 next build",

0 commit comments

Comments
 (0)