forked from cms-dev/cms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
71 lines (58 loc) · 1.96 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
dist: trusty
sudo: required
language: python
python:
- 2.7
- 3.6
# Use the PostgreSQL version that is provided in Ubuntu 16.04.
# We need at least version 9.4 as that is the one that introduced the
# JSONB type. By default Ubuntu 14.04 comes with version 9.3.
addons:
postgresql: "9.5"
apt:
packages:
- build-essential
- php5-cli
- haskell-platform
- fp-compiler
- fp-units-base
- fp-units-fcl
- fp-units-misc
- fp-units-math
- fp-units-rtl
- postgresql-client
- python2.7
- cppreference-doc-en-html
- cgroup-lite
- libcap-dev
- python-dev
- libpq-dev
- libcups2-dev
- libyaml-dev
- wget
- mono-mcs
install:
- wget "https://static.rust-lang.org/dist/rust-1.15.1-x86_64-unknown-linux-gnu.tar.gz"
- tar xf rust-1.15.1-x86_64-unknown-linux-gnu.tar.gz
- pushd rust-1.15.1-x86_64-unknown-linux-gnu
- sudo ./install.sh --prefix=/usr
- popd
- pip install -r requirements.txt
- pip install -r dev-requirements.txt
- sudo python prerequisites.py -y --cmsuser=$USER install
- python setup.py install
before_script:
- psql --username=postgres --command="CREATE USER cmsuser WITH PASSWORD 'your_password_here';"
- createdb --username=postgres --owner=cmsuser cmsdb
- psql --username=postgres --dbname=cmsdb --command='ALTER SCHEMA public OWNER TO cmsuser'
- psql --username=postgres --dbname=cmsdb --command='GRANT SELECT ON pg_largeobject TO cmsuser'
- createdb --username=postgres --owner=cmsuser cmsdbfortesting
- psql --username=postgres --dbname=cmsdbfortesting --command='ALTER SCHEMA public OWNER TO cmsuser'
- psql --username=postgres --dbname=cmsdbfortesting --command='GRANT SELECT ON pg_largeobject TO cmsuser'
- cp ./config/cms.conf.sample ./config/cms.conf
- 'sed -e "s/\"cmsuser\": \"cmsuser\"/\"cmsuser\": \"$USER\"/" -i ./config/cms.conf'
- cmsInitDB
script:
- cmsRunTests -v --codecov
notifications:
email: no