forked from the-blue-alliance/the-blue-alliance
/
.travis.yml
46 lines (46 loc) · 948 Bytes
/
.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
language: python
python: 2.7
sudo: false
addons:
apt:
packages:
- jq
cache:
pip: true
directories:
- node_modules
env:
matrix:
- JOB=PYUNIT
- JOB=PYBUILD
- JOB=JSUNIT
- JOB=LINT
- JOB=MAKE
stages:
- test
- name: deploy
if: (type = push) AND (branch IN (master, py3))
install:
- travis_retry ./ops/travis/travis-install.sh $JOB
- export PYTHONPATH=${PYTHONPATH}:${HOME}/google_appengine
- export ENDPOINTS_GAE_SDK=$(gcloud info --format="value(installation.sdk_root)")
before_script:
- ./ops/travis/travis-before.sh $JOB
script:
- ./ops/travis/travis-worker.sh $JOB
after_failure:
- cat test_failures.temp
before_deploy:
- ./ops/manage_deploy_keys.sh -d
- ./ops/manage_deploy_keys.sh -x
jobs:
include:
- stage: deploy
script: skip
env: JOB=DEPLOY
deploy:
skip_cleanup: true
provider: script
script: ./ops/travis/travis-deploy.sh
on:
branch: $CONTINUOUS_PUSH_BRANCH