Skip to content

Commit

Permalink
fix: travis for node, Remove husky and lint-staged (#1390)
Browse files Browse the repository at this point in the history
  • Loading branch information
HazAT committed Jun 13, 2018
1 parent caa938c commit 89162db
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 844 deletions.
53 changes: 44 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,55 @@ branches:
only:
- master

sudo: required
language: node_js
install: true
sudo: false

node_js:
- '8'
- "4"
- "5"
- "6"
- "7"
- "8"
- "9"
- "10"

language: node_js
dist: trusty

cache:
directories:
- node_modules
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH="$HOME/.yarn/bin:$PATH"

before_script:
- |
CHANGES=$(git --no-pager diff --name-only FETCH_HEAD $(git merge-base FETCH_HEAD master))
if [ -n "$(grep 'raven-js' <<< "$CHANGES")" ]; then
RAVEN_JS_CHANGES=true
fi
if [ -n "$(grep 'raven-node' <<< "$CHANGES")" ]; then
RAVEN_NODE_CHANGES=true
fi
FORCE=$(git log --format=%B --no-merges -n 1)
if [ -n "$(grep '\[force ci\]' <<< "$FORCE")" ]; then
RAVEN_JS_CHANGES=true
RAVEN_NODE_CHANGES=true
fi
env: NAME="raven-node"
script:
- |
cd packages/raven-node
npm install
if [[ ("$RAVEN_NODE_CHANGES" = "true" || "$TRAVIS_PULL_REQUEST" = "false" ) && "$TRAVIS_SECURE_ENV_VARS" = "true" ]]; then
npm run test-full
else
npm run test
fi
matrix:
include:
- env: NAME="raven-js"
install: true
node_js: "8"
addons:
chrome: stable
firefox: latest
Expand All @@ -39,9 +63,20 @@ matrix:
if [[ ("$RAVEN_JS_CHANGES" = "true" || "$TRAVIS_PULL_REQUEST" = "false" ) && "$TRAVIS_SECURE_ENV_VARS" = "true" ]]; then
npm run test:ci
fi
- env: NAME="@sentry -> lint"
script: yarn build && yarn lint
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH="$HOME/.yarn/bin:$PATH"
node_js: "8"
script: yarn && yarn build && yarn lint

- env: NAME="@sentry -> test"
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH="$HOME/.yarn/bin:$PATH"
node_js: "8"
sudo: required
addons:
chrome: stable
script: yarn build && yarn test && yarn codecov
script: yarn && yarn build && yarn test && yarn codecov
2 changes: 1 addition & 1 deletion packages/raven-js/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 0 additions & 17 deletions packages/raven-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,23 +73,6 @@
"bracketSpacing": false,
"printWidth": 90
},
"lint-staged": {
"src/**/*.js": [
"eslint",
"prettier --write",
"git add"
],
"test/**/*.js": [
"eslint",
"prettier --write",
"git add"
],
"plugins/**/*.js": [
"eslint",
"prettier --write",
"git add"
]
},
"typings": "typescript/raven.d.ts",
"bundlesize": [
{
Expand Down
38 changes: 0 additions & 38 deletions packages/raven-node/.travis.yml

This file was deleted.

0 comments on commit 89162db

Please sign in to comment.