-
Notifications
You must be signed in to change notification settings - Fork 21
/
.travis.yml
54 lines (49 loc) · 1.26 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
dist: bionic
language: node_js
node_js:
- "15"
before_install:
- sudo apt-get update
- sudo apt-get -y install coreutils
- chmod +x ./scripts/travis/build.sh
- chmod +x ./scripts/travis/deploy_server.sh
- chmod +x ./scripts/travis/deploy_github.sh
- chmod +x ./scripts/travis/deploy_docker.sh
stages:
- compile
# - test We've no tested defined yet
jobs:
include:
- stage: compile
script: "./scripts/travis/build.sh --enable-release --enable-debug || travis_terminate 1;"
deploy:
- provider: script
script: "bash scripts/travis/deploy_server.sh development"
cleanup: false
skip_cleanup: true
on:
branch: develop
# - provider: script
# cleanup: false
# skip_cleanup: true
# script: "bash scripts/travis/deploy_docker.sh development"
# on:
# branch: develop
- provider: script
script: "bash scripts/travis/deploy_server.sh production"
cleanup: false
skip_cleanup: true
on:
branch: master
- provider: script
cleanup: false
skip_cleanup: true
script: "bash scripts/travis/deploy_github.sh"
on:
branch: master
# - provider: script
# cleanup: false
# skip_cleanup: true
# script: "bash scripts/travis/deploy_docker.sh release"
# on:
# branch: master