language: node_js env: global: - GH_REF: github.com/w3c/aria-practices.git git: depth: 3 branches: only: master install: - npm install && npm test before_script: - git config --global user.email "cooper@w3.org" - git config --global user.name "michael-n-cooper" script: - cd ../.. - mkdir gh-pages - cd gh-pages - git clone --depth=1 --branch=gh-pages https://github.com/w3c/aria-practices.git - cd aria-practices - curl https://labs.w3.org/spec-generator/?type=respec"&"url=https://rawgit.com/w3c/aria-practices/master/aria-practices.html -o index.html -f - cp -r ../../w3c/aria-practices/examples . after_success: - git add . - git commit -m "Generated by TRAVIS-CI" - git push "https://${GH_TOKEN}@${GH_REF}" gh-pages > /dev/null 2>&1