This repository has been archived by the owner on Aug 21, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 39
/
.travis.yml
89 lines (78 loc) · 4.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
sudo: required
branches:
except:
- l10n_dev
language: python
python:
- "3.5"
env:
- TRAVIS_NODE_VERSION="7.9.0"
cache:
directories:
- $(npm root -g)
- node_modules
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/221310ac788484ff25fe
- https://webhooks.gitter.im/e/f32286c047612bea82b0
on_success: always # options: [always|never|change] default: change
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: never
services:
- docker
addons:
sauce_connect:
username: "dogi"
jwt:
#open-learning-exchange
secure: "PdbTxqhrCkWya1DstJWePB0J5viymw3FUCxoVZA99ZnjZz7IJKhq10YRtF+5sjhcYyZHjzYpOjgzoP0rZDkHbO+r9tp7m/9W+gsuEr84zujJCCYX8BbVoXoB7QI4XODkbKQpD0w4XobfThJJ0GvkJPW0/XwdQxGGrsaEffmHOQLML06OzDdJKc79QJXwodFfaGUp1Whnsyl1TB7i9KZYUF33bVA8XazfVZw0VHaSxaZg0PmfFXNaLtVPxKubsCACQoFMdfFvA+ilwwOgjOvFSGMOqYr1634Dt26qmb/xW5jXEeB4gb8TafOQD3EPWgewHf/hjJhca0Y0zFf5k/ZeWYPy2+Wnhw1+GjbzawgRqgoCRgW6yAONvKHSwhcmiIJTzzgq0+ONYyKlkLxv7EmBn86z+1PcygLILPk1cokj/08lBfKud3BxaghkbYRQc3Baj/8lAPvl6GXGIyOMt6bzOr/sO1VytKeZ7z2FrVm4Tn7finn5MPSiZLFjirJtd1MMKK2H24pDJhAtE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/RILLTMBJop9iAiTzpkXuwc5F+xs/PQXJ/lqhZyp5arihJvUCRPhpXgzrfc+LQJUMGVd7DHsv49BZPDSZ5y4D5r5u27AtAhTQiqM+ozvWWxvGi7ju5CW1wiLxBKDbjhbbCYaZdKH6kxoFGofJuswrGygUfaqVBg/tz0DxLKGMiNYedfJcNMBzOyXjEKzS52BdzLqZZmRj1JekaVHw1P6vkkCTU/512JMJZmlSE8LsROyMtIq8Vraz++gmYShNePtA4afVNckpnY8uvusWT/0f+td9K1yH7El4rMxO5j30q55K9nTDqE3R/GwgX4vxhdMJ//KeYgGTg9e/QlE9sUZad0GdaZmRr5iajqzXFAS9bQpLvyyRC4LviBEpXGkZhiicpbqIvYl6K+fvxl5/GhfQfIr0c35vlNMKcOUpr7zwySGch+mVo/pmXefKtaDDCGKdNJIW9qHY29JkBXrJBrfILnQ8="
#travis encrypt SAUCE_ACCESS_KEY=...
install:
- rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm install $TRAVIS_NODE_VERSION
- travis_retry npm install -g codeceptjs
- travis_retry npm install -g webdriverio
- travis_retry npm install -g cookie
#- pip install -I selenium==3.0.2
#- pip install sauceclient
#- pip install pycouchdb
before_install:
- docker pull klaemo/couchdb:1.6.1
- docker run -d -p 5981:5984 --name bell klaemo/couchdb:1.6.1
- echo "node_modules/.bin/couchapp push \$1 \$2" > pushDocToDb.sh
- chmod +x node_modules/.bin/couchapp pushDocToDb.sh
- cp install_windows install_linux
- sed -i "s#pushDocToDb.bat#./pushDocToDb.sh#" install_linux
- sed -i 's#databases\\\\\\\\#databases/#' install_linux
- sed -i 's#databases\\\\\\#databases/#' install_linux
- sed -i 's#databases\\\\#databases/#' install_linux
- sed -i 's/NationBell/nation/' init_docs/ConfigurationsDoc-Nation.txt
- sed -i 's/nationbell/NATION/' init_docs/ConfigurationsDoc-Nation.txt
- sed -i 's#Male#Female#' install_linux
- sed -i 's#somalia#nation#' install_linux
- |-
sed -i 's#"visits": 0#"visits":0,"bellLanguage":"English","BirthDate":"2010-10-15T04:00:00.000Z","community":"NATION"#' install_linux
- cd app
- python minify_html.py
- mv MyApp/index.html MyApp/index1.html
- mv MyApp/index2.html MyApp/index.html
- mv nation/index.html nation/index1.html
- mv nation/index2.html nation/index.html
- cd ..
- while ! curl -X GET http://127.0.0.1:5981/_all_dbs ; do sleep 1; done
- node install_linux http://127.0.0.1:5981
- curl -X PUT 'http://127.0.0.1:5981/_config/log/file' -d '"/usr/local/var/log/couchdb/couch.log"'
- curl -X PUT 'http://127.0.0.1:5981/_config/httpd/allow_jsonp' -d '"true"'
- curl -X PUT 'http://127.0.0.1:5981/_config/admins/nation' -d '"oleoleole"'
- npm update -q
- npm install --save -g co
script:
#- export
- docker ps -a | grep bell
- curl -X GET http://127.0.0.1:5981/_all_dbs
- i=$(curl -X GET http://127.0.0.1:5981/_all_dbs | jq length); if [ $i -ne 40 ]; then exit 1; fi
#- node -v
- (cd tests && codeceptjs run --steps)
#- python -m unittest discover tests