travis: add Travis CI build script

Этот коммит содержится в:
Ayke van Laethem 2018-09-30 15:50:11 +02:00
родитель a2e57b40f9
коммит 02936042b8
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: E97FF5335DFDFDED
2 изменённых файлов: 19 добавлений и 0 удалений

18
.travis.yml Обычный файл
Просмотреть файл

@ -0,0 +1,18 @@
language: go
go:
- "1.11"
- "master"
before_install:
- echo "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-7 main" | sudo tee -a /etc/apt/sources.list
- echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu trusty main" | sudo tee -a /etc/apt/sources.list
- sudo apt-get update -qq
- sudo apt-get install llvm-7-dev gcc-8 --allow-unauthenticated -y
- sudo ln -s /usr/bin/gcc-8 /usr/local/bin/cc # work around missing -no-pie in old GCC version
install:
- go get github.com/aykevl/go-llvm
- go get golang.org/x/tools/go/ssa
script: go test -v .

Просмотреть файл

@ -1,6 +1,7 @@
# TinyGo - Go compiler for microcontrollers # TinyGo - Go compiler for microcontrollers
[![Documentation Status](https://readthedocs.org/projects/tinygo/badge/?version=latest)](https://tinygo.readthedocs.io/) [![Documentation Status](https://readthedocs.org/projects/tinygo/badge/?version=latest)](https://tinygo.readthedocs.io/)
[![Build Status](https://travis-ci.com/aykevl/tinygo.svg?branch=master)](https://travis-ci.com/aykevl/tinygo)
> We never expected Go to be an embedded language and so it's got serious > We never expected Go to be an embedded language and so it's got serious
> problems [...]. > problems [...].