-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
58 lines (49 loc) · 1.38 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
51
52
53
54
55
56
57
58
os: linux
dist: jammy # Ubuntu 22.04 LTS
language: ruby
gemfile: 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/vendor # Enable caching installed bundle gems
- $TRAVIS_BUILD_DIR/.cache # Enable caching link checks
before_deploy:
- wget -q --output-document=firebase https://firebase.tools/bin/linux/latest
- chmod +x firebase
deploy:
# Firebase production deployment
- provider: script # uses FIREBASE_TOKEN
on:
branch: master
skip_cleanup: true
script: make deploy-production
# Firebase preview deployment
- provider: script # uses FIREBASE_TOKEN
on:
all_branches: true
condition: $TRAVIS_BRANCH = preview-*
skip_cleanup: true
script: make deploy-preview