-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
17 lines (17 loc) · 1 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
language: python
python:
- "3.3"
- "2.7"
# command to install dependencies, e.g. pip install -r requirements.txt
install: pip install -r requirements.txt
# command to run tests, e.g. python setup.py test
script:
- mkdir -p /var/tmp/incremental-store/test/backups
- mkdir /var/tmp/incremental-test
- mkdir -p /var/tmp/incremental-store/test/backups/`date +%Y%m%d --date="yesterday"`/tree
- mkdir -p /var/tmp/incremental-store/test/backups/`date +%Y%m%d --date="31 days ago"`/tree
- ln -s /var/tmp/incremental-store/test/backups/`date +%Y%m%d --date="yesterday"` /var/tmp/incremental-store/test/backups/latest
- date +%s --date="31 days ago" > /var/tmp/incremental-store/test/backups/`date +%Y%m%d --date="31 days ago"`/backup.done
- date +%s --date="yesterday" > /var/tmp/incremental-store/test/backups/`date +%Y%m%d --date="yesterday"`/backup.done
- python ./incremental.py -c ./incremental.def.yaml
- python ./expire.py -c ./incremental.def.yaml