-
-
Notifications
You must be signed in to change notification settings - Fork 44
/
.travis.yml
73 lines (72 loc) · 2.23 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
sudo: true
dist: trusty
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- python3
- gcc-8
- g++-8
before_script:
- wget https://github.com/ocaml/ocaml/archive/4.10.2.tar.gz
- tar -xzf 4.10.2.tar.gz
- cd ocaml-4.10.2
- "./configure"
- make world
- make world.opt
- sudo make install
- cd -
- git config --global user.email "[email protected]"
- git config --global user.name "skaller"
- git config --global push.default simple
-
- mkdir -p build
#- git clone -q --depth=1 https://skaller:${GITHUB_TOKEN}@github.com/felix-lang/linuxgccbinary.git
#- mkdir -p build
#- cp -r linuxgccbinary/build/* build
#- rm -rf build/release/share/lib/
script:
- mkdir -p bin
- sudo rm -rf /usr/bin/gcc
- sudo rm -rf /usr/bin/g++
- sudo ln -s /usr/bin/gcc-8 /usr/bin/gcc
- sudo ln -s /usr/bin/g++-8 /usr/bin/g++
- export PATH=bin:build/release/host/bin:$PATH
- export LD_LIBRARY_PATH=build/release/host/lib/rtl:$LD_LIBRARY_PATH
-
- gcc --version
- g++ --version
- FLX_MIN_MEM=100000 make "FBUILD_PARAMS=--build-cc=gcc --build-cxx=g++"
-
- #make rebuild uproot
after_success:
- mkdir linuxgccbinary/build
- mkdir linuxgccbinary/build/release
- mkdir linuxgccbinary/build/release/share
- mkdir linuxgccbinary/build/release/host
- cp -r build/release/share/* linuxgccbinary/build/release/share
- cp -r build/release/host/* linuxgccbinary/build/release/host
- cd linuxgccbinary
- git add build/release/host/*
- git add build/release/share/*
- git commit -a -m "travis rebuild"
- git push >/dev/null 2>1
- cd ..
before_deploy:
- export FLX_VERSION=`python3 showversion.py`
- tar -czvf felix-${FLX_VERSION}-linux64-gcc-8.tgz build/release/host build/release/share
deploy:
skip_cleanup: true
provider: releases
api_key:
secure: AnV8qFgHkwitbfWJgb2TukDBk8FOrAMlIaby1BMVYOXGNwqROz3iUNPz0KYybVqbc2WvNOFfF8OuHKT2JdKqlKdMUoc0n1cTlHHn/ikkgVI38niO8eixAeuhgDSgGVRhkcW7eU/8dwJw0EoVhVm4yvQDZjyKTooWE6/Zlx2a49c=
file: felix-${FLX_VERSION}-linux64-gcc-8.tgz
on:
repo: felix-lang/felix
tags: true
notifications:
email: [email protected]
env:
global:
secure: l2FEMgK9dogawsN45lgOMVuUchtVyyFdgJcBeJncCnF5Mz7lIVl1qwGbgZDV6fnWcunh7snaG5o7sUg5+g9ywFc4E9CYCyx/H7Xjcr4y1wHk9RV+K3EkSWtR1DoJnayl6n4vSvP+0o+JzLqJQS65bMNMIjDdkit8CrtEnjIpSas=