-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.travis.yml
39 lines (39 loc) · 1.1 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
dist: trusty
sudo: required
cache: yarn
language: node_js
node_js:
- "10"
os:
- linux
env:
global:
- DBUS_SESSION_BUS_ADDRESS=/dev/null
- DISPLAY=:99.0
- CHROME_BIN=chromium-browser
before_script:
- sh -e /etc/init.d/xvfb start
- echo $TRAVIS_BUILD_DIR
# - cp $TRAVIS_BUILD_DIR/src/environments/environment.ts $TRAVIS_BUILD_DIR/src/environments/environment.prod.ts
before_install:
- sudo apt-get install -y zip unzip
install:
- npm install
script:
# verification de la syntaxe
- npm run lint
# compilation du projet
- npm run build
# récuperation de elfinder
- curl -o elfinder.zip https://codeload.github.com/Studio-42/elFinder/zip/2.1.23
- mkdir elfinder
- unzip -d elfinder elfinder.zip
- mv elfinder/elFinder-2.1.23 elfinder/elfinder
# on construit une release
- mkdir release
- cp -r elfinder/elfinder release/
- cp -rf dist/* release/
# envoi sur le serveur de livraison
- cd release
- tar -zcvf dist-omv-web-desk.tar.gz *
- "curl -H 'WAM_UPLOAD_TOKEN: $WAM_UPLOAD_TOKEN' --request POST --data-binary \"@dist-omv-web-desk.tar.gz\" http://dl.weberantoine.fr/reception.php"