diff --git a/.travis.yml b/.travis.yml index 5fe0953..8a52e15 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,18 +6,11 @@ php: - 5.5 - 5.6 -script: rake travis - -env: - - secure: "MCHBESONLTXgn3bsxwQZBty7sNgSwU3P7zTv91TGqQa6YhoAZouqbnZG1yKKOirVugZfNTXTX/mEmq2/RaU5ehsD8fcIMrFpETg6pxJN8MYUUb583g/ER7NkIWlf3fr9Wd6JCZn8rFmQmgF8NHe53zxWoMPagDNhoxoam8ITrK8=" - branches: only: - master before_script: - - gem install bundler - - gem install rake # Composer Setup - composer self-update - composer install --prefer-source --no-interaction --dev diff --git a/Rakefile b/Rakefile deleted file mode 100644 index 365a3b0..0000000 --- a/Rakefile +++ /dev/null @@ -1,30 +0,0 @@ -# Redefine system to exit with nonzero status on fail. -def system(*args) - super(*args) or exit!(1) -end - -desc 'Generate deck from Travis CI and publish to GitHub Pages.' -task :travis do - # if this is a pull request, do a simple build of the site and stop - if ENV['TRAVIS_PULL_REQUEST'].to_s.to_i > 0 - puts 'Pull request detected.' - next - end - - repo = %x(git config remote.origin.url).gsub(/^git:/, 'https:').strip - deploy_url = repo.gsub %r{https://}, "https://#{ENV['GH_TOKEN']}@" - deploy_branch = repo.match(/github\.io\.git$/) ? 'master' : 'gh-pages' - rev = %x(git rev-parse HEAD).strip - - system "git clone --branch #{deploy_branch} #{repo}" - system 'apigen generate' - Dir.chdir dir do - # setup credentials so Travis CI can push to GitHub - system "git config user.name '#{ENV['GIT_NAME']}'" - system "git config user.email '#{ENV['GIT_EMAIL']}'" - - system 'git add --all' - system "git commit -m 'Built from #{rev}'." - system "git push -q #{deploy_url} #{deploy_branch}" - end -end \ No newline at end of file diff --git a/apigen.neon b/apigen.neon index c06553d..0932f34 100644 --- a/apigen.neon +++ b/apigen.neon @@ -1,6 +1,6 @@ source: - src -destination: ./ +destination: ./docs templateTheme: bootstrap title: PHP Parser baseUrl: http://nathanmac.github.io/Parser