aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-12-25 10:41:51 +0100
committerChocobozzz <florian.bigard@gmail.com>2016-12-25 10:41:51 +0100
commitda268a9758ac4af03c8ae5894d6d13fd097ad504 (patch)
treea799719d8bc43ba960db6ae99ebaf97dc37f5230
parent7e6afafd6a43a337b77c4a6c1e93e12bda994255 (diff)
downloadPeerTube-da268a9758ac4af03c8ae5894d6d13fd097ad504.tar.gz
PeerTube-da268a9758ac4af03c8ae5894d6d13fd097ad504.tar.zst
PeerTube-da268a9758ac4af03c8ae5894d6d13fd097ad504.zip
Try to adapt travis to postgresql
-rw-r--r--.travis.yml14
1 files changed, 11 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml
index 9fcd50dee..19fcd53c6 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,8 +1,8 @@
1language: node_js 1language: node_js
2 2
3node_js: 3node_js:
4 - "4.6" 4 - "4"
5 - "6.9" 5 - "6"
6 6
7env: 7env:
8 - CXX=g++-4.8 8 - CXX=g++-4.8
@@ -13,11 +13,12 @@ addons:
13 - ubuntu-toolchain-r-test 13 - ubuntu-toolchain-r-test
14 packages: 14 packages:
15 - g++-4.8 15 - g++-4.8
16 postgresql: "9.4"
16 17
17sudo: false 18sudo: false
18 19
19services: 20services:
20 - mongodb 21 - postgresql
21 22
22before_install: if [[ `npm -v` != 3* ]]; then npm i -g npm@3; fi 23before_install: if [[ `npm -v` != 3* ]]; then npm i -g npm@3; fi
23 24
@@ -29,6 +30,13 @@ before_script:
29 - cp ffmpeg-*-64bit-static/{ffmpeg,ffprobe,ffserver} $HOME/bin 30 - cp ffmpeg-*-64bit-static/{ffmpeg,ffprobe,ffserver} $HOME/bin
30 - export PATH=$HOME/bin:$PATH 31 - export PATH=$HOME/bin:$PATH
31 - export NODE_TEST_IMAGE=true 32 - export NODE_TEST_IMAGE=true
33 - psql -c 'create database peertube_test1;' -U postgres
34 - psql -c 'create database peertube_test2;' -U postgres
35 - psql -c 'create database peertube_test3;' -U postgres
36 - psql -c 'create database peertube_test4;' -U postgres
37 - psql -c 'create database peertube_test5;' -U postgres
38 - psql -c 'create database peertube_test6;' -U postgres
39 - psql -c 'create user peertube with password \'peertube\';' -U postgres
32 40
33after_failure: 41after_failure:
34 - cat test1/logs/all-logs.log 42 - cat test1/logs/all-logs.log