forked from fibjs/fibjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
42 lines (42 loc) · 1.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
language: cpp
compiler: gcc
deploy:
provider: releases
api_key:
secure: NjAZ4QjjsEes/nZzfUDn3FvDRW85+LdRMaPluqBO3APZksBiwSHkkKVRAvIyQJoMGqikxUNP5yx+KFBixvYIjUJY++lFSzMdlNVSi2W4X9cDP87QkPJfO6kFlcaE7wqtGJW1MQf+iCTsLirGHEMl5eDRDVPMFsf3hnpeuO/EQ7s=
file:
- "bin/${DIST}/fibjs_${DIST_FILENAME}"
- "bin/${DIST}/installer_${DIST_FILENAME}.sh"
skip_cleanup: true
on:
tags: true
repo: fibjs/fibjs
branch: master
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.9
- g++-4.9
env:
- DIST=Linux_amd64_release;DIST_FILENAME=linux_x64;
matrix:
include:
- os: osx
osx_image: xcode8.2
env:
- DIST=Darwin_amd64_release;DIST_FILENAME=darwin
install:
- git submodule init
- git submodule update
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export CXX=g++-4.9; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export CC=gcc-4.9; fi
script:
- sh build -j2
- cp "bin/${DIST}/fibjs" "bin/${DIST}/fibjs_${DIST_FILENAME}"
- chmod a+x "bin/${DIST}/fibjs_${DIST_FILENAME}"
- cp "bin/${DIST}/installer.sh" "bin/${DIST}/installer_${DIST_FILENAME}.sh"
- chmod a+x "bin/${DIST}/installer_${DIST_FILENAME}.sh"
# run test
- cd test && ../bin/${DIST}/fibjs main.js