2016-08-30 17:25:34 +03:00
|
|
|
language: python
|
|
|
|
python:
|
|
|
|
- 3.5
|
2016-08-29 02:29:12 +03:00
|
|
|
before_install:
|
2016-08-29 02:38:14 +03:00
|
|
|
- openssl aes-256-cbc -K $encrypted_8f1589bc8b8c_key -iv $encrypted_8f1589bc8b8c_iv -in secrets.tar.enc -out secrets.tar -d
|
|
|
|
- tar xvf secrets.tar
|
|
|
|
- mv deploy-key ~/.ssh/deploy-key
|
2016-08-29 02:30:13 +03:00
|
|
|
- chmod u=rw,og= ~/.ssh/deploy-key
|
2016-08-29 02:29:12 +03:00
|
|
|
- echo "Host github.com" >> ~/.ssh/config
|
|
|
|
- echo "HostName github.com" >> ~/.ssh/config
|
|
|
|
- echo "IdentityFile ~/.ssh/deploy-key" >> ~/.ssh/config
|
|
|
|
- echo "User git" >> ~/.ssh/config
|
|
|
|
- git remote set-url origin git@github.com:mozilla/stab-crashes.git
|
2016-08-30 18:28:40 +03:00
|
|
|
- git fetch origin -f gh-pages:gh-pages
|
2016-08-30 16:46:39 +03:00
|
|
|
install:
|
2016-11-08 13:08:33 +03:00
|
|
|
- pip install --upgrade pip
|
2016-11-08 14:38:01 +03:00
|
|
|
- pip install "setuptools>=28.6.1"
|
2016-08-30 17:34:44 +03:00
|
|
|
- pip install -r requirements.txt
|
|
|
|
- pip install -r test-requirements.txt
|
2016-08-29 02:29:12 +03:00
|
|
|
script:
|
2016-08-30 17:25:34 +03:00
|
|
|
- flake8 .
|
2016-08-30 17:45:17 +03:00
|
|
|
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ "${TRAVIS_BRANCH}" = "master" ] && python generate-data.py && ghp-import -n -p -m "Updates" dist'
|