diff --git a/.travis.yml b/.travis.yml index d54622f5..ce21590f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,8 @@ language: python python: - - 3.5 - 3.6 + - 3.5 # Executed for 3.5 AND 3.5 as the first "test" stage: script: @@ -16,5 +16,9 @@ jobs: - pip install . - npm install -g now - python tests/fixtures.py fixtures.db fixtures.json - - datasette publish now fixtures.db -m fixtures.json --name datasette-latest --token=$NOW_TOKEN + - echo '{"name":"datasette-latest","alias":"latest.datasette.io"}' > now.json + - datasette publish now fixtures.db -m fixtures.json --token=$NOW_TOKEN --branch=$TRAVIS_COMMIT --version-note=$TRAVIS_COMMIT + - now alias + - echo "{\"name\":\"datasette-latest\",\"alias\":\"$TRAVIS_COMMIT.datasette.io\"}" > now.json + - now alias on: travis-deploy-now