language: sh

sudo: required

services:
  - docker

branches:
  only:
    - master

cache:
  directories:
    - ~/docker

before_script:
  - .travis/before_script.sh

script:
  - .travis/run.sh

before_cache:
  - .travis/before_cache.sh

deploy:
  provider: script
  script: .travis/deploy.sh
  skip_cleanup: true
  on:
    branch: master

env:
  global:
    - RSYNC_HOST=139.162.244.147
    - RSYNC_USER=alexwlchan
    - RSYNC_DIR=/home/alexwlchan/sites/alexwlchan.net

language: sh

sudo: required

services:
  - docker

branches:
  only:
    - master

cache:
  directories:
    - ~/docker

before_script:
  - .travis/before_script.sh

jobs:
  include:
    - script: .travis/run.sh
    - stage: deploy
      script: .travis/deploy.sh

stages:
  - test
  - name: deploy
    if: branch = master

before_cache:
  - .travis/before_cache.sh

env:
  global:
    - RSYNC_HOST=139.162.244.147
    - RSYNC_USER=alexwlchan
    - RSYNC_DIR=/home/alexwlchan/sites/alexwlchan.net

Switch to Travis build stages
Switch to Travis build stages
