Skip to content
This repository was archived by the owner on Sep 24, 2024. It is now read-only.

Commit f5d1e09

Browse files
wil93stefano-maggiolo
authored andcommitted
Fix travis testing; Add build badge to README.md
1 parent f5813a3 commit f5d1e09

File tree

3 files changed

+51
-38
lines changed

3 files changed

+51
-38
lines changed

.travis.sh

-36
This file was deleted.

.travis.yml

+50-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,53 @@
11
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+
314
env:
415
- 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

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Contest Management System
33

44
Homepage: <http://cms-dev.github.io/>
55

6+
[![Build Status](https://travis-ci.org/cms-dev/cms.svg?branch=master)](https://travis-ci.org/cms-dev/cms)
67
[![Join the chat at https://gitter.im/cms-dev/cms](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/cms-dev/cms?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
78

89
Introduction

0 commit comments

Comments
 (0)