Skip to content

Latest commit

 

History

History
56 lines (56 loc) · 1.88 KB

.travis.md

File metadata and controls

56 lines (56 loc) · 1.88 KB

language: node_js notifications: email: false node_js:

  • 8 sudo: required cache: directories:
  • node_modules env: global:
  • "curl -X POST -d '{"content": "Starting a build on Travis CI"}' $DISCORD_WEBHOOK_URL"
  • sudo timedatectl set-timezone Asia/Tokyo
  • timedatectl
  • openssl aes-256-cbc -K $encrypted_15c9b8c5d591_key -iv $encrypted_15c9b8c5d591_iv -in vtuber.enc -out vtuber -d
  • cp vtuber ~/.ssh/vtuber
  • chmod 600 ~/.ssh/vtuber
  • echo -e "Host github.com\n\tStrictHostKeyChecking no\nHost github github.com\n\tHostName github.com\n\tIdentityFile ~/.ssh/vtuber\n\tUser git\n" >> ~/.ssh/config
  • git config --global user.email "info@suiranfes.com"
  • git config --global user.name "LuckyBeast"
  • mkdir ~/.fonts/
  • cp fonts/*.ttf ~/.fonts/
  • fc-cache -fv
  • sudo apt-get install inkscape
  • npm i gulp-cli node-gyp -g
  • gulp --version
  • git remote remove origin
  • git remote add origin $GIT_ORIGIN_HTTPS
  • git fetch origin --depth 1
  • git worktree add -B gh-pages docs remotes/origin/gh-pages
  • cp -f docs/.git docs.git
  • git worktree add -B dist dist remotes/origin/dist script:
  • gulp travis_ci after_success:
  • cp -f docs.git docs/.git
  • cd docs
  • git add --all
  • git commit -m "Travis CI $TRAVIS_JOB_NUMBER"
  • '[ "$TRAVIS_BRANCH" == master ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && git push $GIT_ORIGIN_GIT gh-pages'
  • cd ../dist
  • git rm -r characters
  • git rm -r docs
  • git rm -r files
  • git add --all
  • git commit -m "Travis CI $TRAVIS_JOB_NUMBER"
  • '[ "$TRAVIS_BRANCH" == master ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && git push $GIT_ORIGIN_GIT dist' after_failure:
  • gulp notify-failure