forked from nicor88/twitter-to-kinesis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (44 loc) · 1.24 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
language: python
python: '3.6'
sudo: false
env:
global:
- AWS_DEFAULT_REGION=eu-west-1
before_install:
# Install conda
- wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda3
- export PATH="$HOME/miniconda3/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda config --set show_channel_urls true
- conda config -f --add channels conda-forge
- conda config -f --add channels defaults
- conda info -a
install:
- conda env create -n twitter-to-kinesis -f $TRAVIS_BUILD_DIR/conda-dev-env.yml
- source activate twitter-to-kinesis
- conda list
script:
# run tests
- py.test -vv -r sxX
before_deploy:
- rm miniconda.sh
- zip -r latest .
- mkdir -p dist
- cp latest.zip dist/$TRAVIS_COMMIT.zip
- mv latest.zip dist/latest.zip
deploy:
provider: s3
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_SECRET_ACCESS_KEY
bucket: $AWS_BUCKET
region: $AWS_BUCKET_REGION
local_dir: dist
upload-dir: deployments/apps/twitter-to-kinesis
acl: private
skip_cleanup: true
on:
all_branches: true
notifications:
email: true