This repository has been archived by the owner on Jan 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 38
/
.travis.yml
55 lines (45 loc) · 1.87 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
env:
global:
- secure: g7WTo8ofUjRFP5ce3+8imSm7V6V9jmyNvkPST1m6q8XOcfTTH2ualDS5At3Zk1mHG9x656LKQfC/voeUq7RK17AJ3wtMp6R84kmzF0v3Y0hRUn5ALOXQIEtPb4V+c8TxOrInZLxVQSxLlSZg9Bjia5U/8SjpYWHn0NqSiNkZvt2NKdNDCvx3krHpDVAD6nUui4qf0JCU3SbjMfaLwuDRgr2Hs5cDVa+y6EyVkODLqMjiz5k9yXEhom3H5gaSzm/tLwXHnxtPrNaQXEIvI8jgyEA9f3NPRjM2eAAbg9pbAiJjNSkStgA6Vvq1ANMQ7H3Q4D/ml7LGPGlsKq5M/C5cL8IEq8JHndTFOxuMLv9322P6z5VeAx5BD2xlbXdOivxac4iqbduVns9NEyHxi3g9y9K2ssC7f7p6JxyBXxuN4b0HPwJdGC3+1WcA+XdIxeeudeg3K+QcHyUc5obq6pb7iasgD5x3DDSSe4pKdwIUUbYUotptvxwYYzVKY/E9g2Kid2KyGbO3WTitLdk4fLQ6BF1dqkGNcDSJb3s5/W40lcq7KODQvmBQy7iUMTZnLk2FogZtyXbf8c+V2joF3EDX+lW0N3OBLf/Q2p3jKNzl+F9xJhcFa5t1ZORJRLG5Ap+zm12qh/lpkoFegGqmt3Y6yDGS9rrVpgEsb7qOmQX2VQ0=
- $FFIDest=$TRAVIS_BUILD_DIR/app/ffi
matrix:
include:
- os: linux
- os: osx
language: generic
python:
- '2.7'
osx_image: xcode7.3
sudo: required
dist: trusty
addons:
apt:
packages:
- xvfb
install:
- curl -sSf https://static.rust-lang.org/rustup.sh | sh
- rustc -V
- cargo -V
- nvm --version
- nvm install 6.4.0
- node --version
- npm --version
- python --version
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start &
- Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
- sleep 3
script:
- cd $TRAVIS_BUILD_DIR
- git clone https://github.com/maidsafe/safe_core.git && cd safe_core
- travis_wait 30 cargo build --release --verbose --features use-mock-routing
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then cp ./target/release/libsafe_core.dylib $FFIDest; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then cp ./target/release/libsafe_core.so $FFIDest; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install libgconf-2-4; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install libnss3-dev; fi
- cd $TRAVIS_BUILD_DIR
- npm install
- npm run rebuild-native
- npm run lint
- npm test