.travis.yml, package.json, cypress.json fixes

pull/12/merge
Szekeres Bálint 7 years ago
parent b72673ffe7
commit 11ea1c0961

@ -1,8 +1,22 @@
language: bash
language: node_js
node_js:
- "lts/*"
addons:
ssh_known_hosts: nginxconfig.io
cache:
directories:
- ~/.npm
- node_modules
install:
- npm install
script:
- npm run test
before_deploy:
- openssl aes-256-cbc -K $encrypted_c855341ef4be_key -iv $encrypted_c855341ef4be_iv -in .deploy_rsa.enc -out /tmp/deploy_rsa -d
- eval "$(ssh-agent -s)"
@ -14,15 +28,3 @@ deploy:
branch: master
provider: script
script: ssh -q -l root nginxconfig.io "sudo -u www-data -H sh -c 'cd /var/www/nginxconfig.io; git reset --hard && git pull origin master && find . -type f -name '*.html' -exec sed -i -e \"s/COMMIT_HASH/$TRAVIS_COMMIT/\" {} \;'"
node_js:
- 6
cache:
directories:
- ~/.npm
- node_modules
install:
- npm install
script:
- npm run test

@ -1,4 +1,3 @@
{
"projectId": "hmbpea",
"videoRecording": false
"projectId": "mhyogs"
}

@ -1,27 +1,26 @@
{
"name": "nginxconfig.io",
"version": "1.0.0",
"description": "[![nginxconfig.io](public/assets/img/share.png)](https://nginxconfig.io)",
"main": "index.js",
"scripts": {
"dev": "forever start ./node_modules/.bin/http-server && cypress open && forever stop ./node_modules/.bin/http-server",
"test": "forever start ./node_modules/.bin/http-server && cypress run --record && forever stop ./node_modules/.bin/http-server"
},
"homepage": "https://nginxconfig.io",
"description": "Online nginx configuration generator",
"repository": {
"type": "git",
"url": "git+https://github.com/valentinxxx/nginxconfig.io.git"
},
"keywords": [],
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/valentinxxx/nginxconfig.io/issues"
},
"homepage": "https://github.com/valentinxxx/nginxconfig.io#readme",
"keywords": ["nginx", "config", "configuration", "generator"],
"author": "Bálint Szekeres <balint@szekeres.me> (https://balint.szekeres.me)",
"license": "MIT",
"dependencies": {},
"devDependencies": {
"cypress": "^2.1.0",
"forever": "^0.15.3",
"http-server": "^0.11.1"
},
"scripts": {
"dev": "forever start ./node_modules/.bin/http-server && cypress open && forever stop ./node_modules/.bin/http-server",
"test": "forever start ./node_modules/.bin/http-server && cypress run --record && forever stop ./node_modules/.bin/http-server"
}
}

Loading…
Cancel
Save