|
1 | 1 | dist: trusty
|
2 |
| -sudo: true |
| 2 | +sudo: required |
| 3 | + |
| 4 | +# FIXME: The following travis setting would automatically use a virtualenv, |
| 5 | +# and CMS would think it is not installed, see this github issue: |
| 6 | +# https://github.com/cms-dev/cms/issues/559 |
| 7 | +# (while it stays commented out, travis will think we're using ruby) |
| 8 | +# when the issue is fixed, we will be able to take advantage of |
| 9 | +# multi-version testing (testing against many python versions) |
| 10 | +#language: python |
| 11 | +#python: |
| 12 | +# - 2.7 |
| 13 | + |
3 | 14 | env:
|
4 | 15 | - TEST_SUITE=functionaltests
|
5 |
| -script: ./.travis.sh |
| 16 | + |
| 17 | +install: |
| 18 | + - sudo apt-get update -qq |
| 19 | + - sudo apt-get install -y build-essential fpc php5-cli gcj-jdk |
| 20 | + - sudo apt-get install -y postgresql-client gettext python2.7 iso-codes shared-mime-info stl-manual cgroup-lite |
| 21 | + - sudo apt-get install -y python-dev libpq-dev libcups2-dev libyaml-dev |
| 22 | + |
| 23 | + - cp ./config/cms.conf.sample ./config/cms.conf |
| 24 | + - sudo ./prerequisites.py install -y |
| 25 | + |
| 26 | + - sudo pip install -r requirements.txt |
| 27 | + - sudo pip install -r dev-requirements.txt |
| 28 | + - sudo python setup.py install |
| 29 | + |
| 30 | + - sudo -u postgres psql -c "CREATE USER cmsuser WITH PASSWORD 'password';" |
| 31 | + - sudo -u postgres psql -c "CREATE DATABASE database WITH OWNER cmsuser;" |
| 32 | + - sudo -u postgres psql database -c "ALTER SCHEMA public OWNER TO cmsuser" |
| 33 | + - sudo -u postgres psql database -c "GRANT SELECT ON pg_largeobject TO cmsuser" |
| 34 | + |
| 35 | + - sudo -u postgres psql -c "CREATE DATABASE databasefortesting WITH OWNER cmsuser;" |
| 36 | + - sudo -u postgres psql databasefortesting -c "ALTER SCHEMA public OWNER TO cmsuser" |
| 37 | + - sudo -u postgres psql databasefortesting -c "GRANT SELECT ON pg_largeobject TO cmsuser" |
| 38 | + |
| 39 | + - sudo chown root:$USER /usr/local/bin/isolate /usr/local/etc/cms.conf |
| 40 | + - sudo chmod 750 /usr/local/bin/isolate |
| 41 | + - sudo chmod 640 /usr/local/etc/cms.conf |
| 42 | + - sudo chmod u+s /usr/local/bin/isolate /usr/local/etc/cms.conf |
| 43 | + |
| 44 | + - ls -al /usr/local/bin/isolate /usr/local/etc/cms.conf |
| 45 | + - groups |
| 46 | + |
| 47 | + - sudo cmsInitDB |
| 48 | + |
| 49 | +script: |
| 50 | + - sudo cmsRunTests -v |
| 51 | + |
| 52 | +notifications: |
| 53 | + email: no |
0 commit comments