Click here to Skip to main content
15,888,239 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Continuing on my previous question Travis give error but compiles on pc, I've found a solution that works. But Travis has been terminated after 10 minutes and gives an error for that.

How can I cancel the build when there is no exception occurred?

The code into my .travis.yml file is unchanged.

yml
install:
  - npm install
  - npm install -g bower
  - bower install bootstrap
  - bower install socket.io
language: node_js
node_js:
  - "6.9"
before_script: 
  - chmod 0777 ./backend/server.js
cache:
  directories:
    - node_modules
    - bower_components


But edit the file package.json on the marked line:

JSON
{
  "name": "watchfriends",
  "version": "0.0.0",
  "description": "Front-end and back-end project watchfriends",
  "main": "gulpfile.js",
  "scripts": {
    "test": "node ./backend/server.js" // <--
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/WatchFriends/Backend.git"
  },
  "author": "Hein P., Jasper D., Michiel V., Michiel Z.",
  "license": "ISC",
  "bugs": {
    "url": "https://github.com/WatchFriends/Backend/issues"
  },
  "homepage": "https://github.com/WatchFriends/Backend#readme",
  "devDependencies": {
    "gulp": "^3.9.1",
    "gulp-autoprefixer": "^3.1.1",
    "gulp-clean-css": "^2.0.13",
    "gulp-concat": "^2.6.1",
    "gulp-csslint": "^1.0.0",
    "gulp-htmlhint": "^0.3.1",
    "gulp-jshint": "^2.0.4",
    "gulp-notify": "^2.2.0",
    "gulp-sass": "^2.3.2",
    "gulp-sourcemaps": "^2.2.0",
    "gulp-uglify": "^2.0.0",
    "jshint-stylish": "^2.2.1"
  },
  "dependencies": {
    "socket.io": "^1.5.1"
  }
}


P.S.: the application language is Node.JS.

Thanks in advance.

What I have tried:

I've Google it but nothing found
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900