-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
50 lines (50 loc) · 1.21 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
49
50
language: node_js
env:
global:
- PATH=$HOME/.local/bin:$PATH
dist: xenial
node_js:
- '14'
cache:
pip: true
npm: true
directories:
- node_modules
python:
- 3.7
sudo: true
before_install:
- pip install --user --upgrade pip
- pip install --user awscli
- sudo apt-get install nasm zlib1g-dev
before_script:
- npm install
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- './cc-test-reporter before-build'
script:
- npm run validate
- npm run build
after_script:
- './cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT'
deploy:
on:
branch: master
provider: s3
region: '$DEPLOY_REGION'
access_key_id: '$AWS_ACCESS_KEY_ID'
secret_access_key: '$AWS_SECRET_ACCESS_KEY'
bucket: '$BUCKET_NAME'
skip_cleanup: true
local_dir: build
cache_control: max-age=21600
after_deploy:
- aws configure set preview.cloudfront true
- aws cloudfront create-invalidation --distribution-id $CLOUDFRONT_DISTRIBUTION_ID_1 --paths "/*"
- aws cloudfront create-invalidation --distribution-id $CLOUDFRONT_DISTRIBUTION_ID_2 --paths "/*"
addons:
apt:
packages:
- libgconf-2-4
services:
- xvfb