-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
65 lines (60 loc) · 1.72 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
56
57
58
59
60
61
62
63
64
65
stages:
- build
- deploy
jobs:
include:
# ceiled-driver: build, test
- language: rust
rust: stable
cache: cargo
name: "Build & Test - ceiled-driver"
stage: build
before_script: cd ceiled-driver
script:
- cargo build
- cargo test
# ceiled-server: build, test
- language: node_js
node_js:
- 10
cache: yarn
name: Build & Test - ceiled-server
stage: build
services:
- mongodb
before_install: cd ceiled-server
install: yarn install
script:
- yarn build
- yarn test
# ceiled-web, build
- language: node_js
node_js:
- 10
cache: yarn
name: Build ceiled-web
stage: build
before_install: cd ceiled-web
install: yarn install
script: yarn build
# deploy
- language: node_js
node_js:
- 10
cache: yarn
name: Deploy ceiled-driver, ceiled-server and ceiled-web
stage: deploy
if: branch = master OR branch = develop
before_install:
- openssl aes-256-cbc -K $encrypted_8913863055d3_key -iv $encrypted_8913863055d3_iv -in .travis/travis_key.enc -out ~/.ssh/travis_key -d
- chmod 600 ~/.ssh/travis_key
- echo "bart.vanoort.is ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBDpIvXSvLobd5l7nlTVGPcH6kjDrQZga40RkHVdh1RQH7Z4btuNhjwfZyjtCM4aeTPHWx7Qi15FJaUdvknWR1CU=" >> ~/.ssh/known_hosts
install: cd ceiled-web && yarn install
script: yarn build
deploy:
skip_cleanup: true
provider: script
script: cd .. && .travis/deploy.sh
on:
all_branches: true
condition: $TRAVIS_BRANCH =~ ^develop|master$