forked from CSCfi/fairdata-etsin-qvain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (46 loc) · 1.95 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: trusty
language: python
python: 3.6
git:
depth: false
quiet: true
branches:
only:
- test
- stable
cache:
directories:
- pip
stages:
- name: tests
if: type IN (push, pull_request)
- name: deploy
if: type IN (push)
jobs:
include:
- stage: tests
before_install:
- sudo apt-get install npm libxml2-dev libxmlsec1-dev libxmlsec1-openssl
install:
- cd $TRAVIS_BUILD_DIR/etsin_finder/frontend
- npm install
- npm run build -- --define process.env.NODE_ENV=\"'travis'\"
before_script:
- cd $TRAVIS_BUILD_DIR
- pip install tox-travis
- sudo mkdir /var/log/etsin_finder
- sudo chown -R $USER:$USER /var/log/etsin_finder
script: tox -e travis && cd $TRAVIS_BUILD_DIR/etsin_finder/frontend && npm run lint && npm run test
- stage: deploy
before_install:
- sudo apt-get install libxml2-dev libxmlsec1-dev libxmlsec1-openssl
before_script:
- openssl aes-256-cbc -K $encrypted_de686f18e070_key -iv $encrypted_de686f18e070_iv -in deploy-key.enc -out deploy-key -d
- rm deploy-key.enc
- chmod 600 deploy-key
- mv deploy-key ~/.ssh/id_rsa
- eval "$(ssh-agent -s)"
- ssh-add ~/.ssh/id_rsa
script: $TRAVIS_BUILD_DIR/.travis-deploy.sh
notifications:
flowdock: eNLKnn2PTohlmGggmTNZYNTx70/FYzzlKXtyvf8fqcWTOmqpp+ZkttWIe0iWfmdkFKx82LaKcGk86Bj0wR4IHkbxJZLV61BQtPi5SZVG8zwBMDjfqRJtxCgzKN4nxeKqzVAZ1LB2TU1ggccHT7XJ/NJyGsQjDX+ek/LXgZbteZBHtswP079m4FgOIuolgRJAmHTr8w2Krd25K+uZByHRvHtV6ajb2At2J1PvYBgx47oD603JRW3Jqnhs37eXU4DrO0P8apmTuvXpInDB413s8FhLOiicH8CQGZyzBo2D9ZhGEQbN3hN/8zDlOAYDxjvpTF+vP8DDl/hKzm7MH+h4mNMC0lZUJXzuSdK1NlOb69pXL5NhYuo0Iz7lHzyRxTOoJJE5IC6J8AR5e0D79FTLnPMPZPeH7xlHoPPphCaK9Qk1bejwiQXjTNr7rgmE9ct9/cipEU/F3OcMFpbIc5QwCWz18lrFIRBC6koBZNPE7fW73AouHFu+JgkRFRJgcxx/Cx+SsVZUDw5//YvviWsgAhCLOHBt36BXKSHtNNLRfmantVwBXZhi7+Xl31jrqh7IAjR/v4npkadiBMHgx7opERRvsC9or4WeC6P3TdarlF5nyliV4yCtGdYKeHLDrX6A8tZSdT2TdRL3svo5frDACoLVItvAyPcMW0Wh6QfpDsw=