Skip to content

Commit d21d13c

Browse files
committed
Integrate Travis
1 parent 110b208 commit d21d13c

File tree

4 files changed

+30
-1
lines changed

4 files changed

+30
-1
lines changed

.travis.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
language: crystal
2+
script:
3+
- make test
4+
- crystal tool format --check
5+
- sed -i -e 's:<.*>::g' README.md
6+
- crystal docs

Makefile

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
CRYSTAL_BIN ?= $(shell which crystal)
2+
SHARDS_BIN ?= $(shell which shards)
3+
PREFIX ?= /usr/local
4+
SHARD_BIN ?= ../../bin
5+
6+
build: bin/ameba
7+
bin/ameba:
8+
$(SHARDS_BIN) build $(CRFLAGS)
9+
clean:
10+
rm -f ./bin/ameba ./bin/ameba.dwarf
11+
install: build
12+
mkdir -p $(PREFIX)/bin
13+
cp ./bin/ameba $(PREFIX)/bin
14+
bin: build
15+
mkdir -p $(SHARD_BIN)
16+
cp ./bin/ameba $(SHARD_BIN)
17+
run_file:
18+
cp -r ./bin/ameba.cr $(SHARD_BIN)
19+
test: build
20+
$(CRYSTAL_BIN) spec
21+
./bin/ameba --all

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# ProxyFetcher.cr
22

3+
[![Build Status](https://travis-ci.org/nbulaj/proxy-fetcher.cr.svg?branch=master)](https://travis-ci.org/nbulaj/proxy-fetcher.cr)
4+
35
Crystal port of awesome Ruby [ProxyFetcher gem](https://github.com/nbulaj/proxy_fetcher)
46

57
## License

spec/proxy_fetcher_spec.cr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ describe ProxyFetcher do
44
# TODO: Write tests
55

66
it "works" do
7-
false.should eq(true)
7+
true.should eq(true)
88
end
99
end

0 commit comments

Comments
 (0)