$ vi .travis.yml
(Example for python)
language: python python: - "2.7" # command to install dependencies install: "pip install nose" # command to run tests script: nosetests
(Example for Ruby)
language: ruby rvm: - "2.2.3" before_script: - psql -c "CREATE USER nasebanal WITH PASSWORD 'nasebanal';" -U postgres - psql -c 'CREATE DATABASE "nb-bitcoin_test";' -U postgres
If you use database, add "before_script" to create database and database user to pass the test script.
(Example for Ruby)
$ gem install travis --no-rdoc --no-ri
(Example for Ruby)
$ rake test
(Example for Ruby)
$ travis lint [travis.yml path]
If you put the following line in your README.md file, you can see the status of Travis-ci from it.
[](https://travis-ci.org/nasebanal/hd-website)
S.Yatsuzuka