mirror of
https://github.com/roswell/roswell.git
synced 2026-09-10 07:16:17 -04:00
edit .travis.yml
This commit is contained in:
parent
c068828fe1
commit
9663f24e37
55
.travis.yml
55
.travis.yml
|
|
@ -25,10 +25,6 @@ os:
|
|||
- osx
|
||||
- linux
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/.rosproxy
|
||||
|
||||
matrix:
|
||||
allow_failures:
|
||||
- env: METHOD=brew
|
||||
|
|
@ -51,6 +47,13 @@ matrix:
|
|||
- ruby-sass
|
||||
- os: windows
|
||||
env: METHOD=ci LISP=sbcl-bin
|
||||
- os: linux
|
||||
arch: arm64
|
||||
env: METHOD=ci LISP=sbcl-bin
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- libcurl4-openssl-dev
|
||||
|
||||
#branches:
|
||||
# except:
|
||||
|
|
@ -65,16 +68,27 @@ addons:
|
|||
|
||||
before_install:
|
||||
- date
|
||||
- if [ $METHOD = documents ]; then find . \( -name \*.c -o -name \*.h \) -type f|xargs wc -l -c; fi
|
||||
- if [ $METHOD = documents ]; then find . \( -name \*.lisp -o -name \*.ros \) -type f|xargs wc -l -c; fi
|
||||
- if [ $METHOD = documents ]; then
|
||||
find . \( -name \*.lisp -o -name \*.ros \) -type f|xargs wc -l -c;
|
||||
find . \( -name \*.c -o -name \*.h \) -type f|xargs wc -l -c;
|
||||
pandoc -v;
|
||||
fi
|
||||
- if [ $METHOD = brew ] && [ $TRAVIS_OS_NAME = linux ]; then
|
||||
yes ""| sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"; fi
|
||||
- if [ $METHOD = brew ] || [ $TRAVIS_OS_NAME = osx ]; then brew update;brew --env;brew config; fi
|
||||
- if [ $METHOD = brew ]; then brew update;brew doctor || true; fi
|
||||
- if [ $METHOD = brew ]; then brew doctor || true; fi
|
||||
|
||||
install:
|
||||
- if [ $METHOD = documents ]; then pandoc -v; fi
|
||||
- if [ $METHOD = brew ] && [ $TRAVIS_OS_NAME = linux ]; then brew install curl ; fi
|
||||
- if [ $METHOD = brew ] && [ $TRAVIS_OS_NAME = linux ]; then brew install curl; fi
|
||||
- if [ $METHOD = brew ]; then brew install roswell --HEAD; fi
|
||||
- if [ "$METHOD" = "valgrind" ]; then
|
||||
sh bootstrap;
|
||||
CFLAGS=$XCFLAGS ./configure --disable-dependency-tracking --disable-maintainer-mode;
|
||||
make;
|
||||
sudo make install;
|
||||
make maintainer-clean;
|
||||
fi
|
||||
- if [ "$METHOD" = "ci" ]; then sh ./scripts/install-for-ci.sh; fi
|
||||
|
||||
script:
|
||||
- if [ "$METHOD" = "documents" ]; then
|
||||
|
|
@ -84,14 +98,9 @@ script:
|
|||
make;
|
||||
sudo make install;
|
||||
fi
|
||||
- if [ "$METHOD" = "brew" ]; then brew install roswell --HEAD; fi
|
||||
- if [ "$METHOD" = "ci" ]; then sh ./scripts/install-for-ci.sh; fi
|
||||
- if [ "$METHOD" = "valgrind" ]; then
|
||||
sh bootstrap;
|
||||
CFLAGS=$XCFLAGS ./configure --disable-dependency-tracking --disable-maintainer-mode;
|
||||
make;
|
||||
sudo make install;
|
||||
make maintainer-clean;
|
||||
ros setup;
|
||||
valgrind --leak-check=yes ros config;
|
||||
fi
|
||||
- if [ "$METHOD" = "brew" ] || [ "$METHOD" = "ci" ]; then
|
||||
ros version;
|
||||
|
|
@ -117,18 +126,10 @@ script:
|
|||
- ros config
|
||||
|
||||
after_success:
|
||||
- if [ "$METHOD" = "documents" ] || [ $METHOD = brew ]; then
|
||||
git config user.email "auto@example.com";
|
||||
git config user.name "Travis-CI";
|
||||
fi
|
||||
- if [ "$METHOD" = "valgrind" ]; then
|
||||
ros setup;
|
||||
valgrind --leak-check=yes ros config;
|
||||
fi
|
||||
- if [ "$METHOD" = "documents" ]; then
|
||||
- git config user.email "auto@example.com"; git config user.name "Travis-CI";
|
||||
- if [ "$METHOD" = "documents" ] && [ "$TRAVIS_BRANCH" = "master" ]; then
|
||||
git branch;git status;
|
||||
git checkout $TRAVIS_BRANCH;git add -u;git add documents/man/* documents/html/*;
|
||||
git commit -m "[ci skip] documents update";
|
||||
git push --force --quiet "https://${GITHUB_OAUTH_TOKEN}:x-oauth-basic@github.com/roswell/roswell.git" $TRAVIS_BRANCH > /dev/null 2>&1;
|
||||
fi
|
||||
- if [ "$METHOD" = "documents" ] && [ "$TRAVIS_BRANCH" = "master" ]; then
|
||||
git push --force --quiet "https://${GITHUB_OAUTH_TOKEN}:x-oauth-basic@github.com/roswell/roswell.git" $TRAVIS_BRANCH > /dev/null 2>&1; fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue