Просмотр исходного кода

Merge pull request #53 from oferrigni/master

Travis support
David N. Welton 10 лет назад
Родитель
Сommit
85525ec867
2 измененных файлов с 21 добавлено и 0 удалено
  1. 17 0
      .travis.yml
  2. 4 0
      README.md

+ 17 - 0
.travis.yml

@@ -0,0 +1,17 @@
+language: erlang
+otp_release:
+  - R16B03-1
+  - 17.4
+before_script:
+  - sudo apt-get update -qq
+  - sudo apt-get install postgresql-9.3-postgis-2.1 postgresql-contrib
+addons:
+  postgresql: "9.3"
+script:
+  - sudo chmod 777 /var/run/postgresql/
+  - ./setup_test_db.sh
+  - ./start_test_db.sh &
+  - sleep 1
+  - make create_testdbs
+  - make test
+

+ 4 - 0
README.md

@@ -421,6 +421,7 @@ Here's how to create a patch that's easy to integrate:
 * Create a new branch for the proposed fix.
 * Make sure it includes a test and documentation, if appropriate.
 * Open a pull request against the `devel` branch of epgsql.
+* Passing build in travis
 
 ## Test Setup
 
@@ -440,3 +441,6 @@ tests!  On Ubuntu, you can install them with a command like this:
 3. `make create_testdbs` # Creates the test database environment.
 
 4. `make test` # Runs the tests
+
+[![Build Status Master](https://travis-ci.org/epgsql/epgsql.svg?branch=master)](https://travis-ci.org/epgsql/epgsql)
+[![Build Status Devel](https://travis-ci.org/epgsql/epgsql.svg?branch=devel)](https://travis-ci.org/epgsql/epgsql)