-
Notifications
You must be signed in to change notification settings - Fork 18
/
.travis.yml
44 lines (44 loc) · 1.58 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
44
matrix:
include:
- os: linux
language: generic
sudo: required
dist: bionic
if: NOT tag IS present OR tag =~ ^*-linux$
before_install:
- mkdir $HOME/.flint
- cp -av . $HOME/.flint
- cd $HOME/.flint
- sudo apt-get update
- sudo apt-get install -y software-properties-common curl git zip sudo wget gnupg ca-certificates apt-transport-https sed python python3
- sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
- echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
- sudo add-apt-repository -y ppa:ethereum/ethereum
- curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash -
- sudo apt-get update
- sudo apt-get install -y solc nodejs mono-complete clang z3
- test -f /usr/bin/msbuild && echo "msbuild exists"
- npm install
- npm install -g truffle@4
- eval "$(curl -sLk https://swiftenv.fuller.li/install.sh)"
- "swiftenv install 5.0.2 || true"
- "swiftenv install 4.2 || true"
- git clone https://github.com/realm/SwiftLint.git /tmp/swiftlint
- (cd /tmp/swiftlint; swiftenv install; swift build -c release --static-swift-stdlib)
- export PATH="/tmp/swiftlint/.build/x86_64-unknown-linux/release:$PATH"
script:
- cd $HOME/.flint
- make
- make release
- make test
before_deploy:
- swift package update
- make release
- make zip
deploy:
provider: releases
skip_cleanup: true
file: flintc.zip
on:
repo: flintlang/flint
tags: true