Commit 97f1d7ab authored by Yushin Washio's avatar Yushin Washio
Browse files

remove test.sh and move the command into the Makefile

parent 22c0850d
......@@ -2,6 +2,6 @@ build:
image: gcc
commands:
- make
- ./test.sh
- make test
branches:
- master
......@@ -11,4 +11,4 @@ build_job:
test_job:
stage: test
script:
- ./test.sh
- make test
.PHONY: test
all: main.o
%.o: %.cpp
......@@ -5,3 +7,10 @@ all: main.o
clean:
-$(RM) *.o
test:
cd test && \
git submodule init && \
git submodule update --depth 1 && \
make && \
./test.o
......@@ -11,11 +11,11 @@ Just
make
```
# Installation
# Testing
Just
```
sudo cp -i main.o /usr/bin/hello-ci
make test
```
# FAQ
......
#!/usr/bin/env sh
cd test
git submodule init
git submodule update --depth 1
make
./test.o
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment