Skip to content

Commit 219142e

Browse files
authored
Merge pull request #164 from tailwindcss/travis
Setup Travis integration
2 parents a71d9ad + fae51e5 commit 219142e

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed

.travis.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
language: php
2+
php:
3+
- '7.1'
4+
5+
cache:
6+
directories:
7+
- $HOME/.composer/cache
8+
- $HOME/.cache/yarn
9+
10+
script:
11+
- yarn
12+
- yarn run test
13+
- cd $TRAVIS_BUILD_DIR/docs && composer self-update
14+
- cd $TRAVIS_BUILD_DIR/docs && composer install --prefer-dist --no-interaction
15+
- cd $TRAVIS_BUILD_DIR/docs && yarn
16+
- cd $TRAVIS_BUILD_DIR/docs && yarn run dev

docs/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@
66
/source/js/
77
/source/mix-manifest.json
88
/tailwind.json
9+
/_tmp

docs/webpack.mix.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ const env = argv.e || argv.env || 'local'
1313
const plugins = [
1414
new OnBuild(() => {
1515
command.get('./vendor/bin/jigsaw build ' + env, (error, stdout, stderr) => {
16-
console.log(error ? stderr : stdout)
16+
if (error) {
17+
console.log(stderr)
18+
process.exit(1)
19+
}
20+
console.log(stdout)
1721
})
1822
}),
1923
new Watch({

0 commit comments

Comments
 (0)