-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
45 lines (45 loc) · 1.24 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
language: cpp
sudo: false
env:
- export NODE_VERSION="5"
os:
- linux
before_install:
- openssl aes-256-cbc -K $encrypted_94a7a972b13d_key -iv $encrypted_94a7a972b13d_iv
-in deploy_rsa.enc -out deploy_rsa -d
- git submodule update --init --recursive
- git clone https://github.com/creationix/nvm.git ./.nvm
- source ./.nvm/nvm.sh
- nvm install $NODE_VERSION
- nvm use $NODE_VERSION
- npm config set python `which python`
- npm install -g "[email protected]"
- if [ $TRAVIS_OS_NAME == "linux" ]; then export CC="gcc-4.8"; export CXX="g++-4.8";
export LINK="gcc-4.8"; export LINKXX="g++-4.8"; fi
- gcc --version
- g++ --version
before_deploy:
- eval "$(ssh-agent -s)"
- chmod 600 $TRAVIS_BUILD_DIR/deploy_rsa
- ssh-add $TRAVIS_BUILD_DIR/deploy_rsa
- ssh-keygen -y -f $TRAVIS_BUILD_DIR/deploy_rsa
- git config --global user.email "[email protected]"
- git config --global user.name "Wanderland Travelers"
- git remote remove origin
- git remote add origin [email protected]:WanderlandTravelers/wanderlandtravelers.github.io.git
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
- gcc-4.8
script:
- npm install
- npm run lint
deploy:
provider: script
skip_cleanup: true
script: scripts/deploy.sh
on:
branch: develop