Skip to content

Commit

Permalink
Setting up Travis
Browse files Browse the repository at this point in the history
- Travis is set up to use latest Node v6.x and will run `yarn run ci`
- Yarn cache is enabled
- Remove 'yarn run test' from git prepush since TravisCI will run the tests
- Remove Jenkins-related scripts
  • Loading branch information
Tony Jin committed Mar 22, 2017
1 parent 8c2f4c6 commit 1b53eaf
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 250 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: node_js
node_js:
- "6"
script: yarn run ci
cache: yarn
3 changes: 0 additions & 3 deletions build/current_version.sh

This file was deleted.

54 changes: 0 additions & 54 deletions build/jenkins_ci.sh

This file was deleted.

190 changes: 0 additions & 190 deletions build/jenkins_release.sh

This file was deleted.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,14 @@
},
"scripts": {
"build": "yarn run clean && yarn run build-rb && yarn run lint && yarn run dev",
"build-ci": "./node_modules/.bin/webpack --progress --colors --config build/webpack.config.js",
"build-rb": "mojito-rb-gen -s src/i18n -o src/i18n/json -b en-US.properties",
"ci": "yarn run clean && yarn run build-rb && yarn run lint && yarn run test && yarn run jenkins",
"ci": "yarn run clean && yarn run build-rb && yarn run lint && yarn run test && yarn run build-ci",
"clean": "rm -rf dist && rm -rf reports/coverage && rm -rf src/i18n/json",
"debug": "NODE_ENV=test ./node_modules/.bin/karma start build/karma.conf.js --no-single-run --auto-watch",
"dev": "BABEL_ENV=dev NODE_ENV=dev ./node_modules/.bin/webpack --progress --colors --config build/webpack.config.js",
"jenkins": "./node_modules/.bin/webpack --progress --colors --config build/webpack.config.js",
"lint": "NODE_ENV=dev ./node_modules/.bin/eslint src/lib && ./node_modules/.bin/stylelint 'src/lib/**/*.scss'",
"prepush": "yarn run lint && yarn run test",
"prepush": "yarn run lint",
"prod": "BABEL_ENV=production NODE_ENV=production node --max_old_space_size=4096 ./node_modules/webpack/bin/webpack.js --progress --colors --config build/webpack.config.js",
"release": "yarn run clean && yarn run build-rb && yarn run lint && yarn run test && yarn run prod",
"test": "NODE_ENV=test ./node_modules/.bin/karma start build/karma.conf.js",
Expand Down

0 comments on commit 1b53eaf

Please sign in to comment.