forked from treilly-nuodb/nuodb-php-pdo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
56 lines (49 loc) · 1.87 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
language: php
php:
- 5.3
- 5.4
- 5.5
env:
- NUOVERSION=2.3.1.14 NUODB_ADD_DOMAIN_PASS=yes NUODB_START_AGENT=yes
notifications:
recipients:
before_install:
- uname -a
- phpenv versions
- export NUODB_ROOT=/opt/nuodb
- export NUODB_INCLUDE_DIR=/opt/nuodb/include
- export NUODB_LIB_DIR=/opt/nuodb/lib64
- export TZ=America/New_York
- date
- cat /etc/debian_version
- sudo apt-get update
- sudo apt-get install valgrind
- ls -al `php-config --extension-dir`
- wget -q http://download.nuohub.org/nuodb_${NUOVERSION}_amd64.deb --output-document=/var/tmp/nuodb.deb
- sudo dpkg -i /var/tmp/nuodb.deb
- sleep 5
- if [[ "${NUODB_ADD_DOMAIN_PASS}" == "yes" ]] ; then sudo chmod 777 $NUODB_ROOT/etc/default.properties; printf "\ndomainPassword = bird\n" >> $NUODB_ROOT/etc/default.properties; sudo chmod 600 $NUODB_ROOT/etc/default.properties; fi
- if [[ "${NUODB_START_AGENT}" == "yes" ]]; then sudo service nuoagent start; fi
- ${NUODB_ROOT}/bin/nuodbmgr --broker localhost --password bird --command "start process sm host localhost database test archive /var/tmp/nuodb initialize true"
- ${NUODB_ROOT}/bin/nuodbmgr --broker localhost --password bird --command "start process te host localhost database test options '--dba-user dba --dba-password dba'"
- ${NUODB_ROOT}/bin/nuosql test@localhost --user dba --password dba < create_user_cloud.sql
install:
- true
script:
- php -i
- export PHP_INCLUDE_DIR=$(php-config --include-dir)
- export TEST_PHP_EXECUTABLE=$(php-config --php-binary)
- export REPORT_EXIT_STATUS=1
- phpize --clean
- phpize
- ./configure --with-pdo-nuodb
- make clean
- make
- echo "extension=pdo_nuodb.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- make install
- php run-test.php -m tests/*.phpt
- php tests-performance/*.php
after_failure:
- cat tests/*.out
- cat tests/*.diff