diff --git a/.travis.yml b/.travis.yml index 214ce61a4..810831b44 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,12 +14,13 @@ addons: - ubuntu-toolchain-r-test packages: - g++-4.8 -script: "(npm test || npm test) && sudo sh -c 'export PATH=\"'\"$(dirname $(which node)):$PATH\"'\" && npm run test:root && npm run test:install'" +script: "(npm test || npm test) && sudo sh -c 'export PATH=\"'\"$(dirname $(which node)):$PATH\"'\" && npm run test:root && npm run test:install && npm run test:reprotest'" before_script: - "./test/hosts.sh" before_install: - sudo apt-get update -qq - sudo apt-get install -qq graphicsmagick + - sudo apt-get install -qq reprotest - npm install -g npm@5 after_script: # We need sudo because the coverage data from as-root tests is root:root but not world-readable diff --git a/package.json b/package.json index 2cc293206..1d53cc083 100644 --- a/package.json +++ b/package.json @@ -85,6 +85,7 @@ "test:systemd": "docker run -v $(pwd):/tmp/pump.io:ro -v $NVM_DIR:/.nvm:ro ubuntu sh -c \"export NVM_DIR=$NVM_DIR; . $NVM_DIR/nvm.sh; nvm use $TRAVIS_NODE_VERSION; cd /tmp/pump.io; npm run test:systemd:run\"", "test:systemd:run": "mkdir -p /tmp/pump.io/uploads; sed 's/%i.service//g' pump.io@.service | sudo tee /etc/systemd/system/pump.io.service; sudo systemctl daemon-reload; sudo systemctl start pump.io.service; npm run test:system", "test:report-coverage": "lcov-result-merger 'coverage*/lcov.info' | coveralls", + "test:reprotest": "reprotest 'npm pack' '*.tgz'", "lint": "npm run lint:jshint && npm run lint:jscs && npm run lint:jade && npm run lint:json && npm run lint:deps", "lint:deps": "dependency-check package.json bin/* test/*.js > /dev/null && dependency-check --unused package.json -i dependency-check -i jscs -i jshint -i jsonlint -i pug-lint -i nyc -i lcov-result-merger -i coveralls bin/* test/*.js > /dev/null", "lint:jshint": "jshint --exclude 'public/javascript/libs' bin/* lib routes public/javascript test",