Skip to content

Commit

Permalink
add travis script
Browse files Browse the repository at this point in the history
  • Loading branch information
zekroTJA committed Jun 7, 2019
1 parent 96e12fd commit 296b657
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
sudo: required

language: go

go:
- tip

go_import_path: github.com/zekroTJA/myrunes

script:
- time bash ./ci/travis.sh

28 changes: 28 additions & 0 deletions ci/travis.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/bash

# install dep dependnecy manager
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | bash

# install node.js & npm
curl -sL https://deb.nodesource.com/setup_12.x | bash -
apt-get install -y nodejs

# install vue CLI
npm i -g @vue/cli

# ensuring backend server dependencies
dep ensure -v

# building backend
go build \
-v -o ./bin/myrunes -ldflags "\
-X github.com/zekroTJA/myrunes/internal/static.Release=TRUE" \
./cmd/server/*.go

cd ./web

# ensuring frontend dependencies
npm i

# building web assets
npm run build

0 comments on commit 296b657

Please sign in to comment.