-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.global.yml
63 lines (54 loc) · 1.72 KB
/
.travis.global.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
51
52
53
54
55
56
57
58
59
60
61
62
63
os: linux
dist: jammy # Ubuntu 22.04 LTS
language: ruby
gemfile: web-core/Gemfile
# Clone full git history for git-restore-mtime to work
git:
depth: false
# Install the necessary software
addons:
apt:
sources:
- sourceline: 'ppa:inkscape.dev/stable'
packages:
- inkscape
- imagemagick
# Restore file times for better GNU Make optimizations
before_install:
- git clone --depth=1 https://github.com/MestreLion/git-tools # Distro version is currently broken
- ./git-tools/git-restore-mtime --force
- rm -rf ./git-tools
install:
- make bundle-install
script:
- make check
env:
global:
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true # Speeds up installation of html-proofer
cache:
bundler: true # Enable caching of bundler gem packages
directories:
- $TRAVIS_BUILD_DIR/web-core/vendor # Enable caching installed bundle gems
- $TRAVIS_BUILD_DIR/web-core/.cache # Enable caching link checks
- $TRAVIS_BUILD_DIR/web-core/assets/generated # Enable caching of generated infographics
- $TRAVIS_BUILD_DIR/web-core/assets/studies # Enable caching of copied study thumbnails
- $TRAVIS_BUILD_DIR/web-core/assets/covers # Enable caching of generated explainer covers
before_deploy:
- wget -q --output-document=web-core/firebase https://firebase.tools/bin/linux/latest
- chmod +x web-core/firebase
deploy:
# Firebase production deployment
- provider: script # uses FIREBASE_TOKEN
edge: true
on:
branch: master
skip_cleanup: true
script: make deploy-production
# Firebase preview deployment
- provider: script # uses FIREBASE_TOKEN
edge: true
on:
all_branches: true
condition: $TRAVIS_BRANCH = preview-*
skip_cleanup: true
script: make deploy-preview