Update CircleCI config

* Name various execution steps
* Split Ubuntu update from package install
* Add git install to allow local execution with CircleCI CLI
master
Nicolas Favre-Felix 5 years ago
parent 1a16d0fe7f
commit 00f6c3ce86

@ -8,21 +8,32 @@ jobs:
working_directory: ~/webdis
steps:
- checkout
# Build & run
- run: |
# Ubuntu setup (git needed for local execution with circleci)
- run:
name : Ubuntu update and Git install
command: |
apt-get -y update &&
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 &&
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 &&
sed -i -e 's/"daemonize":.*false,/"daemonize": true,/g' webdis.json &&
./webdis webdis.json
# Run tests
- run: |
./tests/basic.py
- run:
name: Run tests
command: ./tests/basic.py
workflows:
version: 2

Loading…
Cancel
Save