Merge pull request #164 from tailwindcss/travis

Setup Travis integration
This commit is contained in:
Adam Wathan 2017-11-09 09:24:51 -05:00 committed by GitHub
commit 219142e697
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 1 deletions

16
.travis.yml Normal file
View File

@ -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

1
docs/.gitignore vendored
View File

@ -6,3 +6,4 @@
/source/js/
/source/mix-manifest.json
/tailwind.json
/_tmp

View File

@ -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({