This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lint css: | |
stage: lint-css # <- Should map to the value defined in the 'stages' | |
before_script: # <- Pre-script | |
- npm install | |
cache: # <- Enable caching on files so they are available in the next stage | |
untracked: true # <- Cache the git untracked files (ex. node_modules) | |
only: | |
- master # <- This stage run only on master branch update | |
script: # <- The actually script of this stage | |
- ./node_modules/gulp/bin/gulp.js lint-css |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stages: | |
- lint-css | |
- lint-js | |
- unit-test | |
image: node:6.11.2 | |
lint css: | |
stage: lint-css |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import humanize "github.com/dustin/go-humanize" | |
import "fmt" | |
func main() { | |
fmt.Println("hello world") | |
fmt.Printf("That file is %s.\n", humanize.Bytes(82854982)) // That file is 83 MB. | |
fmt.Printf("You're my %s best friend.\n", humanize.Ordinal(193)) // You are my 193rd best friend. | |
fmt.Printf("You owe $%s.\n", humanize.Comma(6582491)) // You owe $6,582,491. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Gopkg.toml example | |
# | |
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md | |
# for detailed Gopkg.toml documentation. | |
# | |
# required = ["github.com/user/thing/cmd/thing"] | |
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"] | |
# | |
# [[constraint]] | |
# name = "github.com/user/project" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- /home/ykyuen/go/src/gitlab.com/ykyuen/dep-example/Gopkg.lock | |
+++ # This file is autogenerated, do not edit; changes | |
@@ -2,14 +2,13 @@ | |
[[projects]] | |
- branch = "master" | |
name = "github.com/dustin/go-humanize" | |
packages = ["."] | |
- revision = "bb3d318650d48840a39aa21a027c6630e198e626" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import humanize "github.com/dustin/go-humanize" | |
import accounting "github.com/leekchan/accounting" | |
import "math/big" | |
import "fmt" | |
func main() { | |
fmt.Println("hello world") | |
fmt.Printf("That file is %s.\n", humanize.Bytes(82854982)) // That file is 83 MB. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"log" | |
"github.com/sclevine/agouti" | |
) | |
func main() { | |
// driver := agouti.PhantomJS() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[constraint]] | |
name = "github.com/sclevine/agouti" | |
branch = "master" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"log" | |
"github.com/sclevine/agouti" | |
) | |
func main() { | |
// driver := agouti.PhantomJS() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
truncate -s 0 <logfile> |
OlderNewer