]> gitweb.factorcode.org Git - factor.git/blob - .travis.yml
windows.registry: add change-registry-value and delete-value
[factor.git] / .travis.yml
1 language: cpp
2 compiler:
3   - clang
4   - gcc
5 os:
6   - linux
7   - osx
8 sudo: required
9 dist: trusty
10 group: deprecated-2017Q4
11 services:
12   - postgresql
13   - redis-server
14 branches:
15   except:
16   - clean-windows-x86-64
17   - clean-windows-x86-32
18   - clean-linux-x86-64
19   - clean-linux-x86-32
20   - clean-macosx-x86-64
21   - clean-macosx-x86-32
22 addons:
23   apt:
24     packages:
25       - links
26       - libblas-dev
27       - libmagic-dev
28       - libsnappy-dev
29       - libzmq-dev
30       - libpq-dev
31       - cmake
32       - libaio-dev
33       - libsnappy-dev
34 before_install:
35   - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ./build.sh deps-macosx ; else ./build.sh deps-apt-get ; fi
36   - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew ls --versions snappy > /dev/null || brew install snappy; fi
37   - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew ls --versions cmake > /dev/null || brew install cmake; fi
38   - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew ls --versions libmagic > /dev/null || brew install libmagic; fi
39   - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew ls --versions memcached > /dev/null || brew install memcached; fi
40   - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew ls --versions redis > /dev/null || brew install redis; fi
41   - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew ls --versions zeromq > /dev/null || brew install zeromq; fi
42   - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew ls --versions postgresql > /dev/null || brew install postgresql; fi
43   - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew services start memcached; fi
44   - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew services start redis; fi
45   - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew services start postgresql; fi
46   - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew services start memcached; fi
47   - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then rm -rf ~/.gnupg/; fi  # https://github.com/rvm/rvm/issues/3110
48   - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then curl -#LO https://rvm.io/mpapis.asc; fi
49   - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then gpg --import mpapis.asc; fi
50   - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then curl -sSL https://get.rvm.io | bash -s stable; fi  # https://github.com/travis-ci/travis-ci/issues/6307
51   - >
52     wget https://github.com/vmt/udis86/archive/v1.7.2.tar.gz && tar xzvf v1.7.2.tar.gz &&
53     ( cd udis86-1.7.2/ && ./autogen.sh && ./configure --enable-shared=yes && make && sudo make install ) &&
54     ( [[ "$TRAVIS_OS_NAME" != "osx" ]] && sudo ldconfig || true )
55   - git remote set-branches --add origin master
56   - git remote set-branches --add origin clean-windows-x86-64
57   - git remote set-branches --add origin clean-windows-x86-32
58   - git remote set-branches --add origin clean-linux-x86-64
59   - git remote set-branches --add origin clean-linux-x86-32
60   - git remote set-branches --add origin clean-macosx-x86-64
61   - git remote set-branches --add origin clean-macosx-x86-32
62   - git fetch # so we can see which vocabs changed versus origin/master...
63 script:
64   - echo "TRAVIS_BRANCH=$TRAVIS_BRANCH, TRAVIS_PULL_REQUEST_BRANCH=$TRAVIS_PULL_REQUEST_BRANCH"
65   - export CI_BRANCH="${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}"
66   - echo "CI_BRANCH=${CI_BRANCH}"
67   - DEBUG=1 ./build.sh net-bootstrap < /dev/null
68   - "./factor -e='USING: memory vocabs.hierarchy ; \"zealot\" load save'"
69   - './factor -run=zealot.cli-changed-vocabs'
70   - './factor -run=tools.test `./factor -run=zealot.cli-changed-vocabs | paste -s -d " " -`'
71   - './factor -run=help.lint `./factor -run=zealot.cli-changed-vocabs | paste -s -d " " -`'
72   - "./factor -e='USING: modern.paths tools.test sequences system kernel math random ; core-vocabs os macosx? [ dup length 3 /i sample ] when [ test ] each'"