|
|
@ -8,21 +8,32 @@ jobs:
|
|
|
|
working_directory: ~/webdis
|
|
|
|
working_directory: ~/webdis
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
# Ubuntu setup (git needed for local execution with circleci)
|
|
|
|
|
|
|
|
- run:
|
|
|
|
# Build & run
|
|
|
|
name : Ubuntu update and Git install
|
|
|
|
- run: |
|
|
|
|
command: |
|
|
|
|
apt-get -y update &&
|
|
|
|
apt-get -y update &&
|
|
|
|
apt-get -y upgrade &&
|
|
|
|
apt-get -y upgrade &&
|
|
|
|
|
|
|
|
apt-get -y --force-yes install git
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- checkout
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- run:
|
|
|
|
|
|
|
|
name : Set up build environment
|
|
|
|
|
|
|
|
command: |
|
|
|
|
apt-get -y --force-yes install wget make gcc libevent-dev libmsgpack-dev python2.7 &&
|
|
|
|
apt-get -y --force-yes install wget make gcc libevent-dev libmsgpack-dev python2.7 &&
|
|
|
|
ln -s /usr/bin/python2.7 /usr/bin/python &&
|
|
|
|
ln -s /usr/bin/python2.7 /usr/bin/python
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- run:
|
|
|
|
|
|
|
|
name: Build and run webdis
|
|
|
|
|
|
|
|
command: |
|
|
|
|
make &&
|
|
|
|
make &&
|
|
|
|
sed -i -e 's/"daemonize":.*false,/"daemonize": true,/g' webdis.json &&
|
|
|
|
sed -i -e 's/"daemonize":.*false,/"daemonize": true,/g' webdis.json &&
|
|
|
|
./webdis webdis.json
|
|
|
|
./webdis webdis.json
|
|
|
|
|
|
|
|
|
|
|
|
# Run tests
|
|
|
|
- run:
|
|
|
|
- run: |
|
|
|
|
name: Run tests
|
|
|
|
./tests/basic.py
|
|
|
|
command: ./tests/basic.py
|
|
|
|
|
|
|
|
|
|
|
|
workflows:
|
|
|
|
workflows:
|
|
|
|
version: 2
|
|
|
|
version: 2
|
|
|
|