Operating System Ubuntu 14.04 via Koding.com
Install node.js
sudo apt-get update
sudo apt-get install nodejs
Check node.js version
var exclude = [ | |
'(You)', | |
'Bismo Baruno' | |
] | |
function sleep(milliseconds) { | |
var start = new Date().getTime(); | |
for (var i = 0; i < 1e7; i++) { | |
if ((new Date().getTime() - start) > milliseconds) { | |
break; |
package main | |
import ( | |
"encoding/json" | |
"net/http" | |
"time" | |
"github.com/gorilla/mux" | |
"github.com/swaggo/http-swagger" | |
_ "swagger-mux/docs" |
FROM golang:1.8.1 | |
ENV GO_PROJECT /go/src/gitlab.com/go-practice-ci | |
ENV BIN_NAME go-practice-ci | |
RUN mkdir -p ${GO_PROJECT} | |
WORKDIR ${GO_PROJECT} | |
COPY ${BIN_NAME} ${GO_PROJECT} |
image: golang:1.8.1 | |
variables: | |
BIN_NAME: go-practice-ci | |
ARTIFACTS_DIR: artifacts | |
GO_PROJECT: gitlab.com/go-practice-ci | |
stages: | |
- build | |
- test |