forked from ArchiveTeam/ArchiveBot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (45 loc) · 2.08 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
# Multi language is not supported so Python needs to be installed ourselves.
# Ruby is default.
language: ruby
rvm:
- 1.9.3
notifications:
irc:
- "irc.efnet.net#archivebot"
before_install:
- sudo add-apt-repository ppa:fkrull/deadsnakes --yes
- sudo apt-get update -qq
- wget https://bootstrap.pypa.io/get-pip.py
install:
- bundle install --jobs=3 --retry=3 --deployment
- cd plumbing && bundle install --jobs=3 --retry=3 --deployment && cd ..
- sudo apt-get -qq install ircd-hybrid python3.4 python3.4-dev rsync libzmq3-dev
- sudo python3.4 get-pip.py
- travis_retry python3.4 -m pip install -q -r pipeline/requirements.txt --user
- travis_retry python3.4 -m pip install -q nose irc --user
- sudo cp test/example_rsyncd.conf /etc/rsyncd.conf
- python3.4 -m pip install -q git+https://github.com/chfoo/huhhttp#egg=huhhttp --user
before_script:
- curl -X PUT http://127.0.0.1:5984/archivebot
- curl -X PUT http://127.0.0.1:5984/archivebot_logs
- grep -v _rev db/design_docs/archive_urls.json > /tmp/archive_urls.json
- curl -X PUT http://127.0.0.1:5984/archivebot/_design/archive_urls -d @/tmp/archive_urls.json
- grep -v _rev db/design_docs/ignore_patterns.json > /tmp/ignore_patterns.json
- curl -X PUT http://127.0.0.1:5984/archivebot/_design/ignore_patterns -d @/tmp/ignore_patterns.json
- grep -v _rev db/design_docs/jobs.json > /tmp/jobs.json
- curl -X PUT http://127.0.0.1:5984/archivebot/_design/jobs -d @/tmp/jobs.json
- grep -v _rev db/design_docs/user_agents.json > /tmp/user_agents.json
- curl -X PUT http://127.0.0.1:5984/archivebot/_design/user_agents -d @/tmp/user_agents.json
# If ircd-hybrid is running (which currently happens with Ubuntu packages),
# this will restart it.
# If ircd-hybrid is not running (could happen in future), this will start it.
- sudo /etc/init.d/ircd-hybrid restart
- echo -e '\n\nRSYNC_ENABLE=true\n\n' | sudo tee -a /etc/default/rsync
- sudo /etc/init.d/rsync restart
services:
- redis-server
- couchdb
script:
- bundle exec rake
- python3.4 -m nose pipeline/
- python3.4 test/integration_runner.py