diff --git a/.travis.yml b/.travis.yml index 5eb535a035..5a12b753e1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/.travis.yml-old b/.travis.yml-old deleted file mode 100644 index db423b4c80..0000000000 --- a/.travis.yml-old +++ /dev/null @@ -1,38 +0,0 @@ -sudo: false -language: node_js -node_js: "8" -dist: precise - -env: - global: - - SAUCE_USERNAME=valorkin - - SAUCE_ACCESS_KEY=aeaf806e-ad5c-484b-a8fe-4b4b9f54e99a - -before_install: - - export CHROME_BIN=chromium-browser - - export DISPLAY=:99.0 - - sh -e /etc/init.d/xvfb start - -script: - - npm run lint - - npm run build - - rm -rf node_modules/ngx-bootstrap - - npm i ./dist - - npm run demo.ng-build - # istanbul is broken, should be fixed - - npm run test-coverage - -after_success: - - ./node_modules/.bin/codecov - #- npm run test-cross - -addons: - # sauce labs tunel connector (read more https://docs.travis-ci.com/user/sauce-connect/ ) - sauce_connect: true - firefox: "latest" - apt: - sources: - - ubuntu-toolchain-r-test - # required by node-gyp to build some packages - packages: - - g++-4.8 diff --git a/scripts/fetch-docs.js b/scripts/fetch-docs.js index 0cf5a63590..9bcd63f3e2 100644 --- a/scripts/fetch-docs.js +++ b/scripts/fetch-docs.js @@ -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');