Skip to content

Commit

Permalink
feat(ci): deploy on merge to dev (#2743)
Browse files Browse the repository at this point in the history
  • Loading branch information
valorkin authored Sep 28, 2017
1 parent 9e26b73 commit 8f07137
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 44 deletions.
5 changes: 0 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ git:
depth: 3
submodules: false

env:
global:
- SAUCE_USERNAME=valorkin
- SAUCE_ACCESS_KEY=aeaf806e-ad5c-484b-a8fe-4b4b9f54e99a

stages:
- name: precache
if: ( branch = development AND type = push ) OR type = pull_request
Expand Down
38 changes: 0 additions & 38 deletions .travis.yml-old

This file was deleted.

6 changes: 5 additions & 1 deletion scripts/fetch-docs.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
const fs = require('fs-extra');
const exec = require('child_process').exec;

const repoUrl = process.env.TRAVIS
? 'https://github.com/valor-software/ngx-bootstrap.git'
: 'git@github.com:valor-software/ngx-bootstrap.git';

if (!fs.existsSync('gh-pages')) {
console.log('Cloning the latest version of gh-pages');
runCmd("git clone -b gh-pages --single-branch --depth 1 git@github.com:valor-software/ngx-bootstrap.git gh-pages");
runCmd(`git clone -b gh-pages --single-branch --depth 1 ${repoUrl} gh-pages`);
return;
}
console.log('Pulling the latest version of gh-pages');
Expand Down

0 comments on commit 8f07137

Please sign in to comment.