forked from edx/edx-e2e-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (39 loc) · 1.22 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
language: python
matrix:
allow_failures:
- python: "3.6"
- python: "3.7"
include:
- python: "2.7"
- python: "3.5"
- python: "3.6"
- python: "3.7"
dist: xenial # required for Python >= 3.7 (travis-ci/travis-ci#9069)
branches:
only:
- master
env:
global:
- secure: X8Aqo9EwwOF5MJ3P9XDpZvFq2djvo6afB1EzJV9p10DxhrPXPAz3vO1UCdBhHbd2RohGQRulaqATzWd4ICo3woLmxTxl96180sgUBRbYY3vNM7z1wb3VO+YSxfLbTw0MkBwXcZv1/JQIhhmrnTkfmyX89ks0fWGti6ORSxdKs+Y=
- secure: ceiuLB8lLidI+3Ohk/SiO48StGEgxbDDLto6PHdz8rFW6S4VISQF4PqB3X8jGEkyiiSO+sBdm9OYmgHy7zPdJTw/DYQT+2xN2EGx2vrn2NtoBPkCwu/2wCVQ5z0gzqzzncgfnt3lk9CX/mhVoRbGYpt130CgiaVvP9us5+2KAfI=
services:
- docker
cache:
- pip
install:
- pip install -r requirements/base.txt
# command to run tests
script:
- pycodestyle
- paver install_pages
- pylint regression/
after_success:
- if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then
docker --version;
sudo apt-get -y update;
sudo apt-get -y install -o Dpkg::Options::="--force-confnew" docker-ce=18.03.0~ce-0~ubuntu;
docker --version;
docker-compose build;
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASS";
docker push edxops/e2e:latest;
fi