diff --git a/.travis.yml b/.travis.yml index da9df7b..d4351c3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/cypress.json b/cypress.json index cfe6382..531e29a 100644 --- a/cypress.json +++ b/cypress.json @@ -1,4 +1,3 @@ { - "projectId": "hmbpea", - "videoRecording": false + "projectId": "mhyogs" } diff --git a/package.json b/package.json index 05d618f..030eb98 100644 --- a/package.json +++ b/package.json @@ -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 (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" } }