Skip to content

Commit

Permalink
Merge pull request #38 from MartinNowak/fix31
Browse files Browse the repository at this point in the history
fix #31 - Github pages not deployed
  • Loading branch information
MartinNowak authored Mar 13, 2020
2 parents cd89750 + 279d881 commit c3002df
Showing 1 changed file with 14 additions and 21 deletions.
35 changes: 14 additions & 21 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ jobs:
os: linux
dist: xenial
d: ldc
env:
env:
- COVERAGE=false
- BUILD_TOOL='dub'
- name: "ldc-latest D compiler on Xenial Linux using meson"
os: linux
dist: xenial
d: ldc
env:
env:
- COVERAGE=false
- BUILD_TOOL='meson'
- name: "dmd-latest D compiler on Xenial Linux using dub"
Expand All @@ -47,6 +47,7 @@ jobs:
d: dmd-2.088.1
env:
- COVERAGE=true
- DOCS=true
- BUILD_TOOL='dub'
- name: "dmd-latest D compiler on Xenial Linux using meson"
os: linux
Expand Down Expand Up @@ -86,44 +87,36 @@ jobs:
allow_failures:
- d: dmd-nightly
# - d: dmd
# env:
# env:
# - COVERAGE=false
# - BUILD_TOOL='dub'
# - d: dmd
# env:
# env:
# - COVERAGE=false
# - BUILD_TOOL='meson'
# - d: ldc
# env:
# env:
# - COVERAGE=false
# - BUILD_TOOL='dub'

before_deploy:
- |
dub build -b ddox
# push docs to gh-pages branch
cd docs || exit 1
git init
git config user.name 'Travis-CI'
git config user.email '<>'
git add .
git commit -m 'Deployed to Github Pages'
git push --force --quiet "https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}" master:gh-pages
- dub build -b ddox

# https://docs.travis-ci.com/user/deployment-v2/providers/pages/
deploy:
provider: pages
api_key:
secure: O4OECnzSKN2Jf5su/wnxVQGx4iIVcE8DmZLT/WN4KDcHg+jQovwvxRizZEGDB9guX/3bZb321kIi4iXP8G/Z2D9rakdzFlG70Drf60w9kveg0QQEMdavAFKsjokNHuYBNhf7QaGZt8O4IvqMmckZ7NJQyiCY7bq9gV5eWz9QWUB2kMy9fHVS3nsR957ZvmDPqyVjcqCx1y9eUda6IeiD1XD/g7cBuOaN3Zg8ozhGTTr6dbFFdVZLqUbGf2tE/Mq1poqcys3qntClpe8iM2f9Ac2d7hCMjiE9HHT/Q5+ZpHh5dnMa1A8lbJT1lRCYokgxwrL7umjXOf7MA0v4SmtNlfU+GX6C7CjoGNghgDxACCsmKBKbYSICmZLxPFYJ/lmoqU8uzxXaXFFFBBL8xsmJznTKgM0TMTUoxJy06L71T37Bf5Yi3OxAisN9tBftffIHRv+UBoEn2+7I6WmKDkobGNIIj46mM0IKpzxUlF4je10yJlzPGm0PzSDm/ogH8JY3ednEvPFYBwlooWvBEAZpNbMl0tuezaAuYn8/qfpu5aTwvEe7tA0ugBVwBrH676DJQoAZFIji0k43pQfHc/2LIV+n5s5gkLYdFDuuUKbtijzqD4dDdn/pBB6gpzv2ZxBjOoIhCGwJoPMVpE/RLf+HJzdfHRRxdhvRbDon7vbnMz0=
cleanup: true
local_dir: docs
cleanup: false
token: $GITHUB_TOKEN
keep_history: true
edge: true # opt in to dpl v2
on:
branch: master
condition: $TRAVIS_OS_NAME = "linux"

condition: $DOCS = true

script:
- ./travis.sh


branches:
only:
Expand Down

0 comments on commit c3002df

Please sign in to comment.