This is an automated email from the ASF dual-hosted git repository. willholley pushed a commit to branch nodejs-10 in repository https://gitbox.apache.org/repos/asf/couchdb-fauxton.git
commit 03fe481c6ae6e4611f371a0504a0fe199777b228 Author: Will Holley <[email protected]> AuthorDate: Mon Oct 14 10:33:45 2019 +0100 Run production build in Travis --- .travis.yml | 57 ++++++++++++++++++++++++++++++--------------------------- 1 file changed, 30 insertions(+), 27 deletions(-) diff --git a/.travis.yml b/.travis.yml index 62c27b2..e679a1c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,30 +8,33 @@ services: git: depth: 1 -env: - - COUCHDB_IMAGE=apache/couchdb:2.3.1 NIGHTWATCH_SKIPTAGS="search,partitioned" - - COUCHDB_IMAGE=couchdb:dev NIGHTWATCH_SKIPTAGS="search,nonpartitioned" - - COUCHDB_IMAGE=ibmcom/couchdb3:preview-1569600329 NIGHTWATCH_SKIPTAGS=nonpartitioned - -before_install: - - npm install -g npm@latest - - ./bin/build-couchdb-dev.sh -install: - - npm ci -before_script: - - travis_retry ./bin/docker-up-and-check.sh - - curl http://127.0.0.1:5984 - - npm run stylecheck - - npm test - - grunt debugDev - - DIST=./dist/debug ./bin/fauxton & - - sleep 30 -script: - - ./node_modules/.bin/grunt nightwatch_retries -after_script: - - npm run docker:down - -cache: - - apt - - directories: - - "$HOME/.npm" +jobs: + include: + - stage: production-build + script: npm install --production && ./node_modules/grunt-cli/bin/grunt couchdb + - stage: test + env: + - COUCHDB_IMAGE=apache/couchdb:2.3.1 NIGHTWATCH_SKIPTAGS="search,partitioned" + - COUCHDB_IMAGE=couchdb:dev NIGHTWATCH_SKIPTAGS="search,nonpartitioned" + - COUCHDB_IMAGE=ibmcom/couchdb3:preview-1569600329 NIGHTWATCH_SKIPTAGS=nonpartitioned + before_install: + - npm install -g npm@latest + - ./bin/build-couchdb-dev.sh + install: + - npm ci + before_script: + - travis_retry ./bin/docker-up-and-check.sh + - curl http://127.0.0.1:5984 + - npm run stylecheck + - npm test + - grunt debugDev + - DIST=./dist/debug ./bin/fauxton & + - sleep 30 + script: + - ./node_modules/.bin/grunt nightwatch_retries + after_script: + - npm run docker:down + cache: + - apt + - directories: + - "$HOME/.npm"
