forked from p15670423/monkey
Merge pull request #1152 from guardicore/speed-up-travis-build
Speed up travis build
This commit is contained in:
commit
a30d586c3d
18
.travis.yml
18
.travis.yml
|
@ -6,10 +6,15 @@ group: travis_latest
|
||||||
|
|
||||||
language: python
|
language: python
|
||||||
|
|
||||||
|
env:
|
||||||
|
- PIP_CACHE_DIR=$HOME/.cache/pip PIPENV_CACHE_DIR=$HOME/.cache/pipenv
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
- pip
|
- pip
|
||||||
- directories:
|
- directories:
|
||||||
- "$HOME/.npm"
|
- "$HOME/.npm"
|
||||||
|
- $PIP_CACHE_DIR
|
||||||
|
- $PIPENV_CACHE_DIR
|
||||||
|
|
||||||
python:
|
python:
|
||||||
- 3.7
|
- 3.7
|
||||||
|
@ -41,16 +46,11 @@ install:
|
||||||
- node --version
|
- node --version
|
||||||
- npm --version
|
- npm --version
|
||||||
|
|
||||||
# linuxbrew (for hugo)
|
|
||||||
- git clone https://github.com/Homebrew/brew ~/.linuxbrew/Homebrew
|
|
||||||
- mkdir ~/.linuxbrew/bin
|
|
||||||
- ln -s ~/.linuxbrew/Homebrew/bin/brew ~/.linuxbrew/bin
|
|
||||||
- eval $(~/.linuxbrew/bin/brew shellenv)
|
|
||||||
|
|
||||||
# hugo (for documentation)
|
# hugo (for documentation)
|
||||||
- brew install hugo
|
- curl --output - -L https://api.github.com/repos/gohugoio/hugo/releases/latest | grep --color=never "browser_download_url.*Linux-64bit.tar.gz" | grep -v extended | cut -d ':' -f2,3 | tr -d '"' | xargs -n 1 curl -L --output hugo.tar.gz
|
||||||
# print hugo version (useful for debugging documentation build errors)
|
# print hugo version (useful for debugging documentation build errors)
|
||||||
- hugo version
|
- tar -zxf hugo.tar.gz
|
||||||
|
- ./hugo version
|
||||||
|
|
||||||
script:
|
script:
|
||||||
# Check Python code
|
# Check Python code
|
||||||
|
@ -79,7 +79,7 @@ script:
|
||||||
|
|
||||||
# Build documentation
|
# Build documentation
|
||||||
- cd $TRAVIS_BUILD_DIR/docs
|
- cd $TRAVIS_BUILD_DIR/docs
|
||||||
- hugo --verbose --environment staging
|
- ../hugo --verbose --environment staging
|
||||||
|
|
||||||
# verify swimm
|
# verify swimm
|
||||||
- cd $TRAVIS_BUILD_DIR
|
- cd $TRAVIS_BUILD_DIR
|
||||||
|
|
Loading…
Reference in New Issue