-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
43 lines (37 loc) · 1.05 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
sudo: true
language: go
# Using version installed on computer
go:
- 1.11.4
# Probably not used
go_import_path: github.com/pkg/foo
before_install:
- sudo apt-get update
- sudo apt install -y libc6-dev libglu1-mesa-dev libgles2-mesa-dev libxrandr-dev libxcursor-dev libxinerama-dev libxi-dev libasound2-dev
before_script:
# Get Gopherjs
- go get -u github.com/gopherjs/gopherjs
- go get -u github.com/gopherjs/gopherwasm/js
script:
- gopherjs build -o spaceshooter.js github.com/FriendlyUser/spaceshooter
- GOOS=windows GOARCH=386 go build -o spaceshooter.exe main.go
# No idea how to get mac working
- GOOS=linux GOARCH=amd64 go build -o spaceshooter.linux main.go
deploy:
provider: pages
skip-cleanup: true
local-dir: .
github-token: $GITHUB_API_KEY # Set in the settings page of your repository, as a secure variable
keep-history: true
on:
branch: master
deploy:
provider: releases
api_key: $GITHUB_API_KEY
file:
- "spaceshooter.js"
- "spaceshooter.exe"
- "spaceshooter.linux"
skip_cleanup: true
on:
tags: true