Skip to content
This repository has been archived by the owner on May 26, 2021. It is now read-only.

Commit

Permalink
Merge pull request #21 from wilcorrea-forks/master
Browse files Browse the repository at this point in the history
[#17/feature] Use travis to update docs and publish app
  • Loading branch information
wilcorrea authored Mar 25, 2019
2 parents 00e9eb1 + c21be1b commit 159e101
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 7 deletions.
8 changes: 8 additions & 0 deletions .travis.deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

cd ${TRAVIS_BUILD_DIR}

cp .env.js.develop .env.js
quasar build
rm -rf ./docs/*
cp -R ./dist/spa/* ./docs
18 changes: 11 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
language: javascript
language: node_js
node_js:
- 10
- "10"
cache:
npm: true
directories:
- $TRAVIS_BUILD_DIR

install:
- npm install --global @vue/[email protected] @vue/[email protected]
- npm install --global @quasar/[email protected]
- yarn install
- npm install

script:
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then bash ./.travis.deploy.sh; fi'

deploy:
provider: pages
github_token: $GITHUB_TOKEN
local_dir: build_production
repo: xprototype/skeleton-quasar
target_branch: master
keep-history: true
on:
branch: master

script: ./quasar.build.sh
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## Skeleton Quasar

[![Build Status](https://travis-ci.org/xprototype/skeleton-quasar.svg?branch=master)](https://travis-ci.org/xprototype/skeleton-quasar)

### Start environment
```
$ cp .env.js.develop .env.js
Expand Down

0 comments on commit 159e101

Please sign in to comment.