forked from citizenfx/natives
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
34 lines (31 loc) · 1016 Bytes
/
.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
dist: focal
os: linux
arch: arm64 # so we can use auto-spinup containers
language: node_js
node_js:
- '12'
cache: yarn
before_install:
- sudo apt-get update -qq
- sudo apt-get install libclang1-7 -y
- sudo ln -s /usr/lib/aarch64-linux-gnu/libclang-7.so.1 /usr/lib/aarch64-linux-gnu/libclang.so
install:
- bash .travis/setup-builder
script:
- if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then bash .travis/run-pr; fi
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then bash .travis/run-deploy; fi
notifications:
email: false
addons:
ssh_known_hosts: native-deploy-host.live.fivem.net
before_deploy:
- openssl aes-256-cbc -K $encrypted_2b6ad88e47ae_key -iv $encrypted_2b6ad88e47ae_iv -in .travis/deploy_rsa.enc -out /tmp/deploy_rsa -d
- eval "$(ssh-agent -s)"
- chmod 600 /tmp/deploy_rsa
- ssh-add /tmp/deploy_rsa
deploy:
provider: script
edge: true
script: rsync -r --delete-after --quiet $TRAVIS_BUILD_DIR/out/ [email protected]:/home/travis/natives/
on:
branch: master