-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
41 lines (39 loc) · 1001 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
stages:
- name: test
- name: deploy
if: repo = chialab/math-api AND branch = master AND type IN (push, api)
jobs:
include:
- stage: 'test'
sudo: false
language: 'node_js'
node_js: '8.10'
install:
- 'yarn install'
script:
- 'yarn run test'
- stage: 'test'
sudo: false
language: 'python'
python: '3.6'
install:
- 'pip install awscli'
script:
- 'make validate'
- stage: 'deploy'
sudo: 'required'
language: 'python'
python: '3.6'
services:
- 'docker'
install:
- 'pip install awscli'
- 'docker image pull lambci/lambda:build-nodejs8.10'
script: 'skip'
before_deploy:
- 'make layer'
deploy:
# Deploy templates in `s3://thebucket/org/repo/branch-name`.
skip_cleanup: true
provider: 'script'
script: 'make package S3_BUCKET=$S3_BUCKET S3_PREFIX="$TRAVIS_REPO_SLUG/$TRAVIS_BRANCH"'