forked from fibjs/fibjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
66 lines (66 loc) · 1.37 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
dist: trusty
language: cpp
services:
- docker
matrix:
include:
- os: osx
osx_image: xcode9
env:
- ARCH=amd64
- os: osx
osx_image: xcode9
env:
- ARCH=i386
- os: linux
env:
- ARCH=amd64
- os: linux
env:
- ARCH=i386
- os: linux
env:
- ARCH=arm
- os: linux
env:
- ARCH=arm64
- os: linux
env:
- ARCH=mips
- os: linux
env:
- ARCH=mips64
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
rvm install ruby-2.4.0;
rvm --default use 2.4.0;
ruby -v;
brew update;
fi
install:
- git submodule init
- git submodule update
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
docker pull fibjs/build-env:latest;
fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew install xz;
fi
script:
- echo "${ARCH}"
- ./.travis/build.sh
- ./.travis/test.sh
- if [[ "$TRAVIS_TAG" != "" ]]; then
./.travis/release.sh;
fi
deploy:
- provider: releases
api_key:
secure: e8Vlz6ZGelHDh7FXXu39xuGBk08jSXfmddJKG2nAg3HfXKXOEPniVKXtlsCpXD7FrzAo23V3caKBdFRye785JCJ1Xgf6rJx1lwB/0uAYaYYqq+DIVsiK+w3IoaZWvf/yEw6wYXsGI2jgUz3RIinETr/HomO5HAFAQHwbHqL6Jn8=
file_glob: true
file: ${TRAVIS_TAG}/*
skip_cleanup: true
overwrite: true
on:
tags: true
repo: fibjs/fibjs