forked from the-blue-alliance/the-blue-alliance
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (48 loc) · 1.08 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
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
stages:
- test
- name: deploy
if: (type = push) AND (branch = master)
before_install:
- nvm install 8.16.0
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:
- openssl aes-256-cbc -K $encrypted_7463bcfc1880_key -iv $encrypted_7463bcfc1880_iv -in ops/deploy_keys.tar.enc -out ops/deploy_keys.tar -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:
repo: the-blue-alliance/the-blue-alliance
branch: master