.travis.yml, package.json, cypress.json fixes
parent
b72673ffe7
commit
11ea1c0961
28
.travis.yml
28
.travis.yml
|
@ -1,8 +1,22 @@
|
||||||
language: bash
|
language: node_js
|
||||||
|
|
||||||
|
node_js:
|
||||||
|
- "lts/*"
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
ssh_known_hosts: nginxconfig.io
|
ssh_known_hosts: nginxconfig.io
|
||||||
|
|
||||||
|
cache:
|
||||||
|
directories:
|
||||||
|
- ~/.npm
|
||||||
|
- node_modules
|
||||||
|
|
||||||
|
install:
|
||||||
|
- npm install
|
||||||
|
|
||||||
|
script:
|
||||||
|
- npm run test
|
||||||
|
|
||||||
before_deploy:
|
before_deploy:
|
||||||
- openssl aes-256-cbc -K $encrypted_c855341ef4be_key -iv $encrypted_c855341ef4be_iv -in .deploy_rsa.enc -out /tmp/deploy_rsa -d
|
- 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)"
|
- eval "$(ssh-agent -s)"
|
||||||
|
@ -14,15 +28,3 @@ deploy:
|
||||||
branch: master
|
branch: master
|
||||||
provider: script
|
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/\" {} \;'"
|
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",
|
"projectId": "mhyogs"
|
||||||
"videoRecording": false
|
|
||||||
}
|
}
|
||||||
|
|
19
package.json
19
package.json
|
@ -1,27 +1,26 @@
|
||||||
{
|
{
|
||||||
"name": "nginxconfig.io",
|
"name": "nginxconfig.io",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "[![nginxconfig.io](public/assets/img/share.png)](https://nginxconfig.io)",
|
"homepage": "https://nginxconfig.io",
|
||||||
"main": "index.js",
|
"description": "Online nginx configuration generator",
|
||||||
"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"
|
|
||||||
},
|
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/valentinxxx/nginxconfig.io.git"
|
"url": "git+https://github.com/valentinxxx/nginxconfig.io.git"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
|
||||||
"author": "",
|
|
||||||
"license": "ISC",
|
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/valentinxxx/nginxconfig.io/issues"
|
"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": {},
|
"dependencies": {},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"cypress": "^2.1.0",
|
"cypress": "^2.1.0",
|
||||||
"forever": "^0.15.3",
|
"forever": "^0.15.3",
|
||||||
"http-server": "^0.11.1"
|
"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…
Reference in New Issue