2017-02-26 22:24:53 +01:00
|
|
|
# Build status located at https://travis-ci.org/citra-emu/citra-web
|
|
|
|
|
|
|
|
language: node_js
|
|
|
|
|
2017-06-07 09:35:29 +02:00
|
|
|
node_js: "node"
|
2017-06-04 17:52:35 +02:00
|
|
|
|
2017-06-04 17:57:20 +02:00
|
|
|
cache:
|
|
|
|
yarn: true
|
|
|
|
directories:
|
|
|
|
- node_modules
|
2017-02-26 22:24:53 +01:00
|
|
|
|
|
|
|
before_script:
|
|
|
|
- echo '========== Importing wiki articles into hugo =========='
|
|
|
|
- cd ./scripts/wiki/
|
2017-06-04 17:52:35 +02:00
|
|
|
- yarn install
|
2017-02-26 22:24:53 +01:00
|
|
|
- node app.js
|
|
|
|
- cd $TRAVIS_BUILD_DIR
|
|
|
|
|
2017-06-02 00:20:27 +02:00
|
|
|
- echo '========== Importing games wiki articles into hugo =========='
|
|
|
|
- cd ./scripts/games/
|
2017-06-04 17:52:35 +02:00
|
|
|
- yarn install
|
2017-06-02 00:20:27 +02:00
|
|
|
- node app.js
|
|
|
|
- cd $TRAVIS_BUILD_DIR
|
|
|
|
|
2017-02-26 22:24:53 +01:00
|
|
|
- echo '========== Importing twitter tweets into hugo =========='
|
|
|
|
- cd ./scripts/twitter/
|
2017-06-04 17:52:35 +02:00
|
|
|
- yarn install
|
2017-02-26 22:24:53 +01:00
|
|
|
- node app.js
|
|
|
|
- cd $TRAVIS_BUILD_DIR
|
|
|
|
|
2017-07-27 10:33:38 +02:00
|
|
|
- echo '========== Preparing download repository builder dependencies =========='
|
|
|
|
- cd ./scripts/downloads/
|
|
|
|
- yarn install
|
|
|
|
- cd $TRAVIS_BUILD_DIR
|
|
|
|
|
2017-06-28 00:54:43 +02:00
|
|
|
- echo '========== Installing gulp & dependencies =========='
|
2017-06-10 22:48:13 +02:00
|
|
|
- sudo apt-get install graphicsmagick
|
2017-06-10 22:35:01 +02:00
|
|
|
- convert -help
|
2017-06-04 17:52:35 +02:00
|
|
|
- yarn global add @alrra/travis-scripts
|
2017-07-16 01:08:50 +02:00
|
|
|
- yarn global add hugo-bin
|
|
|
|
- hugo version
|
2017-06-04 17:52:35 +02:00
|
|
|
- yarn global add gulp
|
2017-02-26 22:24:53 +01:00
|
|
|
|
|
|
|
- echo '========== Configuring Github Pages =========='
|
|
|
|
- git config --global user.email "citra+citrabotweb@citra-emu.org"
|
|
|
|
- git config --global user.name "CitraBotWeb"
|
2017-02-26 22:37:48 +01:00
|
|
|
- set-up-ssh --key "$encrypted_c7ee54b5843f_key" --iv "$encrypted_c7ee54b5843f_iv" --path-encrypted-key "bf215181b5140522137b3d4f6b73544a.enc"
|
2017-02-26 22:24:53 +01:00
|
|
|
|
|
|
|
- echo '========== Starting gulp deploy task =========='
|
2017-06-28 00:58:03 +02:00
|
|
|
- gulp deploy --production
|
2017-02-26 22:24:53 +01:00
|
|
|
- cd $TRAVIS_BUILD_DIR
|
|
|
|
|
|
|
|
env:
|
|
|
|
- HUGO_ENV=PRD
|
|
|
|
|
2017-06-10 06:06:53 +02:00
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
- mods@citra-emu.org
|
|
|
|
|
2017-02-26 22:24:53 +01:00
|
|
|
# set-up-ssh is provided by travis-scripts.
|
|
|
|
# Setting up the SSH key for Github is described here.
|
|
|
|
# https://github.com/alrra/travis-scripts/blob/master/doc/github-deploy-keys.md
|