forked from s3tools/s3cmd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (38 loc) · 1.19 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
language: python
python:
- "2.6"
- "2.7"
- "3.4"
- "3.5"
- "3.6"
#matrix:
# allow_failures:
# - python: "3.5"
notifications:
email: false
irc: "chat.freenode.net#s3cmd"
# command to install dependencies
cache:
directories:
- $HOME/cache
install:
- pip install .
# command to prepare tests
before_install:
- mkdir -p $HOME/cache
- test ! -e $HOME/cache/minio && wget -O $HOME/cache/minio https://dl.minio.io/server/minio/release/linux-amd64/minio || echo "Minio already in cache"
- mkdir -p $HOME/minio_tmp
# Start a local instance of minio
before_script:
- "export AWS_ACCESS_KEY_ID=Q3AM3UQ867SPQQA43P2F"
- "export AWS_SECRET_ACCESS_KEY=zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG"
- "export MINIO_ACCESS_KEY=Q3AM3UQ867SPQQA43P2F"
- "export MINIO_SECRET_KEY=zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG"
- chmod +x $HOME/cache/minio
- $HOME/cache/minio server $HOME/minio_tmp &
- sleep 4 # give minio some time to start
# command to run tests
## Tests stopped at test 23 because minio doesn't support "quote_plus" used in signatures.
script: python ./run-tests-minio.py -c .travis.s3cfg -p baseauto
after_script:
- killall minio