|
1 |
| -python: |
2 |
| - - "2.7" |
3 |
| -virtualenv: |
4 |
| - system_site_packages: true |
| 1 | +python: |
| 2 | +- '2.7' |
5 | 3 | services:
|
6 |
| - - postgresql |
7 |
| -language: python |
| 4 | +- postgresql |
8 | 5 | env:
|
9 |
| - - secure: "Fwo2XW1lCdHcQINoN+ifR4Rio029Mu5xeaOI/9+DDuY1eiY5JObntb7LGWb7y+kYRBLH7aqWahCEIIVlEnwRHsPE3ui2oQjBsNAR/Mb3l6nhm1+/P/KD/s4u5/BgljEvhHwQ1kUTPj7jYGyI0J1FW/qXK7lFYRcGZu0LhLcw29w=" |
10 |
| -notifications: |
11 |
| - hipchat: |
12 |
| - rooms: |
13 |
| - secure: J/txhSEXTRRibmPxGQ4YtePQ5aarnCAJhHZP+NP9luW/CyhMD45Aq8PKRNgaCq8kZuVs001HePz4IPceqfJiMjts2Dv1SrJqvpPhl4xxIj8aJgH7b1vlKcSUeum3G8+7ZJrURoIxET5EZL0hDAE7ZFPogaksK0zXKlRQsuATkM0= |
14 |
| -before_install: |
15 |
| - - sudo apt-get install software-properties-common |
16 |
| - - sudo add-apt-repository -y ppa:gijzelaar/aartfaac |
17 |
| - - sudo apt-get update -qq |
18 |
| - - sudo sh -c "echo 'deb http://dev.monetdb.org/downloads/deb/ precise monetdb' > /etc/apt/sources.list.d/monetdb.list" |
19 |
| - - wget --output-document=- http://dev.monetdb.org/downloads/MonetDB-GPG-KEY | sudo apt-key add - |
20 |
| - - sudo apt-get update -qq |
21 |
| - - sudo apt-get install -qq casacore-data subversion gfortran git cmake build-essential python-pip python-numpy python-scipy python-pygresql python-monetdb pyrap monetdb5-sql monetdb-client wcslib-dev libboost-python-dev |
22 |
| - - sudo usermod -a -G monetdb $USER |
23 |
| - - sudo sh -c "echo 'STARTUP=yes\nDBFARM=/var/lib/monetdb\n' > /etc/default/monetdb5-sql" |
24 |
| - - sudo service monetdb5-sql start |
25 |
| - - sudo monetdbd set control=yes /var/lib/monetdb |
26 |
| - - sudo monetdbd set passphrase=testdb /var/lib/monetdb |
27 |
| - - psql -c 'create database testdb;' -U postgres |
28 |
| - - git submodule init |
29 |
| - - git submodule update |
30 |
| - |
31 |
| -install: |
32 |
| - - cd ${TRAVIS_BUILD_DIR} |
33 |
| - - pip install -r requirements.txt |
34 |
| - |
| 6 | + global: |
| 7 | + - TKP_DBNAME=testdb |
| 8 | + - TKP_DBUSER=postgres |
| 9 | + - TKP_DBPASS=postgres |
| 10 | +notifications: |
| 11 | + hipchat: |
| 12 | + rooms: |
| 13 | + secure: ZhAQEKkc9bwt4O9TyL4Bdpic/5mme1A9QnFt38BlotvCPkIp19EhH/Qh7M76eCPrAIOngfO7GhnFj7SgjOQ7u5XxohC3Fak9MaUhBeew0GDYEcTq+7WDVQ3FVjyOcWOJMi5nBCKVK/SqOIdmCfBS+waBog7be2VQXcfcej8g2+E= |
| 14 | +before_install: |
| 15 | + - sudo apt-get install software-properties-common |
| 16 | + - sudo add-apt-repository -y ppa:radio-astro/main |
| 17 | + - sudo apt-get update -q |
| 18 | + - sudo apt-get install -qy casacore-data libcasacore2-dev python-numpy python-scipy python-pywcs |
| 19 | + - psql -c "ALTER ROLE postgres WITH PASSWORD 'postgres';" -U postgres |
| 20 | + - psql -c "create database testdb;" -U postgres |
| 21 | + - git submodule init |
| 22 | + - git submodule update |
| 23 | +install: |
| 24 | + - cd ${TRAVIS_BUILD_DIR} |
| 25 | + - sudo pip install --upgrade pip |
| 26 | + - sudo pip install -r requirements.txt |
| 27 | + - sudo python setup.py install |
35 | 28 | script:
|
36 |
| - - cd /tmp |
37 |
| - - ${TRAVIS_BUILD_DIR}/tkp/bin/trap-manage.py initproject pipeline |
38 |
| - - cd pipeline |
39 |
| - - ${TRAVIS_BUILD_DIR}/tkp/bin/trap-manage.py initdb -d testdb -u testdb -p testdb -s testdb -e monetdb -y -P 50000 |
40 |
| - - ${TRAVIS_BUILD_DIR}/tkp/bin/trap-manage.py initdb -d testdb -u postgres -p "" -y |
41 |
| - - cd ${TRAVIS_BUILD_DIR} |
42 |
| - - TKP_DBENGINE=monetdb TKPDB_USER=testdb TKPDB_PASS=testdb TKPDB_NAME=testdb TKPDB_PORT=50000 nosetests |
43 |
| - - TKP_DBUSER=postgres TKP_DBPASSWORD= nosetests |
44 |
| - |
| 29 | + - cd /tmp |
| 30 | + - "${TRAVIS_BUILD_DIR}/tkp/bin/trap-manage.py initproject pipeline" |
| 31 | + - cd pipeline |
| 32 | + - "${TRAVIS_BUILD_DIR}/tkp/bin/trap-manage.py initdb -y" |
| 33 | + - cd ${TRAVIS_BUILD_DIR} |
| 34 | + - TKP_DBUSER=postgres TKP_DBPASSWORD= nosetests |
0 commit comments