diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..b66655e7b --- /dev/null +++ b/.travis.yml @@ -0,0 +1,16 @@ +language: php +php: + - '7.1' + +cache: + directories: + - $HOME/.composer/cache + - $HOME/.cache/yarn + +script: + - yarn + - yarn run test + - cd $TRAVIS_BUILD_DIR/docs && composer self-update + - cd $TRAVIS_BUILD_DIR/docs && composer install --prefer-dist --no-interaction + - cd $TRAVIS_BUILD_DIR/docs && yarn + - cd $TRAVIS_BUILD_DIR/docs && yarn run dev diff --git a/docs/.gitignore b/docs/.gitignore index ed6123ce7..b9fd73827 100644 --- a/docs/.gitignore +++ b/docs/.gitignore @@ -6,3 +6,4 @@ /source/js/ /source/mix-manifest.json /tailwind.json +/_tmp diff --git a/docs/webpack.mix.js b/docs/webpack.mix.js index 8180a0313..752674c6e 100644 --- a/docs/webpack.mix.js +++ b/docs/webpack.mix.js @@ -13,7 +13,11 @@ const env = argv.e || argv.env || 'local' const plugins = [ new OnBuild(() => { command.get('./vendor/bin/jigsaw build ' + env, (error, stdout, stderr) => { - console.log(error ? stderr : stdout) + if (error) { + console.log(stderr) + process.exit(1) + } + console.log(stdout) }) }), new Watch({