Compare commits

...
Author SHA1 Message Date
dpgraham e25c90fb09 Release 1.9.2-beta.2 2018-10-23 15:29:57 -07:00
dpgraham eec14e7fba Tag beta 2018-10-23 15:07:35 -07:00
dpgraham a980639695 Package Lock 2018-10-23 15:03:21 -07:00
dpgraham add3c12e9c Add release-it 2018-10-23 14:43:24 -07:00
dpgraham 2614ae42c8 Use package-lock.json and update Travis to generate shrinkwrap 2018-10-23 14:39:31 -07:00
dpgraham 3db6a34679 Fix 2018-10-22 17:23:50 -07:00
dpgraham 91309089f4 Release beta 2018-10-22 17:19:10 -07:00
dpgraham 686f3522d4 CI updates 2018-10-22 17:17:43 -07:00
dpgraham eeb787ae79 Add shrinkwrap/lockfile script 2018-10-22 16:40:34 -07:00
7 changed files with 16559 additions and 17 deletions
+1 -1
View File
@@ -2,7 +2,6 @@
*.swp
.DS_Store
node_modules
package-lock.json
*.trace
xcuserdata
*.sublime-*
@@ -52,3 +51,4 @@ sample-code/csharp/test/obj
sample-code/csharp/test/bin
sample-code/csharp/packages
appium.zip
npm-shrinkwrap.json
+47 -15
View File
@@ -11,18 +11,35 @@ env:
node_js: "10"
jobs:
include:
# Run the tests and generate/update npm-shrinkwrap.json
- stage: Lockfile
os:
- linux
- sudo: false
node_js: "10"
before_install:
- bash ./bin/has-code-changes.sh || travis_terminate 0 # If only .md files were changed, exit the build altogether
- npm install -g greenkeeper-lockfile
before_script: greenkeeper-lockfile-update
script: npm run test
after_script: greenkeeper-lockfile-update
# Run the tests and generate/update npm-shrinkwrap.json
- stage: Tests
os:
- linux
- sudo: false
script: npm run test && npm run e2e-test
node_js: "10"
script: npm run test && npm run e2e-test
# Run tests in Node versions
- stage:
os:
- linux
- sudo: false
script: npm run test && npm run e2e-test
node_js: "8"
- stage:
os:
- linux
@@ -31,29 +48,44 @@ jobs:
# this is just to indicate in the Travis job list that this is generating docs
- GENERATE_DOCS=true
script: npm run generate-docs
- stage: BinTray Bundle Build and Upload
- stage: Tag beta
# if: branch = master AND type != pull_request
os:
- linux
- sudo: false
script:
- release-it minor --preRelease=beta
- stage: Bundle zip and publish beta
# only want to run this on the main master branch
if: branch = master AND type != pull_request
# if: tag # TODO: This should only be called on 'tag' branches
os:
- osx
- osx_image: xcode9.4
env:
- NODE_ENV=production
- CC=gcc
- CXX=g++
before_install:
- gcc --version
install:
# Install prod dependencies
# Installs dependencies specified in package-lock.json
- npm ci
before_script:
# Strip out devDependencies and shrinkwrap it
- rimraf package-lock.json
- npm prune --production
- npm shrinkwrap --production
# Backup the npm-shrinkwrap.json file
- mv npm-shrinkwrap.json npm-shrinkwrap-no-dev-deps.json
# Re-install so that we get the dev dependencies back
- npm install
# Install only the dev dependencies that we need
- npm install --only=dev gulp
- npm install --only=dev appium-gulp-plugins
before_script:
# Build the assets
- npm run build
# Remove the dev depenedencies
- npm prune
script: npm run zip-and-upload
# Restore npm-shrinkwrap.json to what it was before (with no dev dependencies)
- rimraf package-lock.json
- mv npm-shrinkwrap-no-dev-deps.json npm-shrinkwrap.json
script:
- npm run zip-and-upload
- npm run release-beta
+24
View File
@@ -0,0 +1,24 @@
#!/bin/bash
# Check if this TRAVIS_COMMIT only contains README file changes
set -e
CHANGED_FILES=`git diff --name-only master...${TRAVIS_COMMIT}`
ONLY_READMES=True
MD=".md"
for CHANGED_FILE in $CHANGED_FILES; do
if ! [[ $CHANGED_FILE =~ $MD ]]; then
ONLY_READMES=False
break
fi
done
if [[ $ONLY_READMES == True ]]; then
echo "Non-.md files found, proceeding with build."
exit 0
else
echo "Only .md files found, no need to run build."
exit 1
fi
+16480
View File
File diff suppressed because it is too large Load Diff
+4 -1
View File
@@ -72,7 +72,7 @@
},
"scripts": {
"prepare": "gulp prepublish",
"publish": "gulp prepublish",
"publish": "gulp prepublish && npm prune --production",
"test": "gulp once",
"e2e-test": "gulp e2e-test",
"watch": "gulp watch",
@@ -109,9 +109,12 @@
"gulp": "^4.0.0",
"handlebars": "^4.0.10",
"mocha": "5.x",
"ncp": "^2.0.0",
"pre-commit": "1.x",
"release": "^4.0.2",
"release-it": "^7.6.2",
"replace-ext": "^1.0.0",
"rimraf": "^2.6.2",
"sinon": "^6.0.0",
"validate.js": "^0.12.0",
"wd": "^1.10.0",
+2
View File
@@ -0,0 +1,2 @@
# Do not disable package-lock. Disabling package-lock also disables npm-shrinkwrap
package-lock=false
@@ -0,0 +1 @@
package-lock=false