-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
46 lines (39 loc) · 1.15 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
language: c++
cache: ccache
sudo: required
jobs:
include:
- os: linux
compiler: gcc
install:
- sudo add-apt-repository ppa:pinepain/libv8-archived -y
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get update -q
- sudo apt-get install libv8-5.9-dev -y
- sudo apt-get install libmysqlclient-dev
- sudo apt-get install -qq g++-5
- sudo apt-get install -qq gcc-5
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 90
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 90
- os: osx
compiler: clang
install: brew install v8
addons:
- mysql
script:
- mkdir build
- cd build
- cmake ..
- make
- make install
- cd ..
- mkdir release
- tar -czvf release/mysql-js-$TRAVIS_OS_NAME-x64-release.tar.gz build/libmysql-js.so deps/v8/icudtl.dat deps/v8/natives_blob.bin deps/v8/snapshot_blob Loader.js script.js
deploy:
provider: s3
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_SECRET_ACCESS_KEY
bucket: $AWS_S3_BUCKET
skip_cleanup: true
local_dir: release
region: $AWS_S3_REGION