-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy path.travis.yml
51 lines (45 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
dist: focal
language: ruby
rvm:
- 2.7
env:
global:
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true
- NODE_VERSION=v14
before_install:
- gem install bundler:2.3.9
script:
- set -e
- "$TRAVIS_BUILD_DIR/travis/install_gcloud.sh"
- sudo apt-get install -y python3-pip jupyter jupyter-nbconvert
- sudo -H python3 -m pip install --upgrade setuptools pip
- nvm install $NODE_VERSION
- npm install -g [email protected]
- "./_tests/travis-checks --quick"
deploy:
# Separate deployments to various places based on branch and push type
## - sandbox
- provider: script
skip_cleanup: true
script: "$TRAVIS_BUILD_DIR/travis/activate_service_account.sh SERVICE_ACCOUNT_mlab_sandbox
&& gsutil -m cp -r $TRAVIS_BUILD_DIR/_site/* gs://website.mlab-sandbox.measurementlab.net/"
on:
repo: m-lab/website
all_branches: true
condition: "$TRAVIS_BRANCH == sandbox-* && $TRAVIS_EVENT_TYPE == push"
## - staging
- provider: script
skip_cleanup: true
script: "$TRAVIS_BUILD_DIR/travis/activate_service_account.sh SERVICE_ACCOUNT_mlab_staging
&& gsutil -m cp -r $TRAVIS_BUILD_DIR/_site/* gs://website.mlab-staging.measurementlab.net/"
on:
repo: m-lab/website
all_branches: true
condition: "$TRAVIS_BRANCH == main && $TRAVIS_EVENT_TYPE == push"
## - production
- provider: script
skip_cleanup: true
script: "$TRAVIS_BUILD_DIR/firebase-deploy.sh"
on:
repo: m-lab/website
tags: true