Skip to content

Commit

Permalink
Build on CircleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
int128 committed Nov 18, 2017
1 parent 7ec6aa8 commit fceb1b9
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
version: 2
jobs:
build:
docker:
- image: ubuntu:xenial
steps:
- checkout
- run:
name: Install
command: |
apt update
apt install -y build-essential curl
- run:
name: Build
command: ./make.sh
- run:
name: Test
command: ./fsnotifier64 --selftest
- deploy:
name: Publish
command: |
if [ "$CIRCLE_TAG" ]; then
curl -L -o ~/github-release.tar.bz2 https://github.com/aktau/github-release/releases/download/v0.7.2/linux-amd64-github-release.tar.bz2
tar -C ~ -jxf ~/github-release.tar.bz2
export PATH=~/bin/linux/amd64:"$PATH"
github-release release \
--user int128 \
--repo idea-fsnotifier-wsl \
--tag "$CIRCLE_TAG" \
--name "$CIRCLE_TAG" \
--description "Released on $(date +%Y-%m-%d)"
github-release upload \
--user int128 \
--repo idea-fsnotifier-wsl \
--tag "$CIRCLE_TAG" \
--name fsnotifier64 \
--file fsnotifier64
fi
deployment:
publish:
tag: /.*/

0 comments on commit fceb1b9

Please sign in to comment.