1
1
mirror of https://github.com/aelve/guide.git synced 2024-12-23 12:52:31 +03:00
guide/.travis.yml
Gigiman e51268fb7e
Vue category toc (#228)
* TestCafe added to project. First test written

* Search input test added

* Seacth input test changed, travis job for testcafe tests added

* Travis bugfix test

* Travis testcafe bugfix test try 2

* Travis testcafe bugfix test ry 3

* Travis testcafe test sleep increased to 10

* Test adding category added but bug with click occurs - check!!!

* Category test (testing the group where test was creating) added - bug fix

* Article component rewrite

* Article component rewritten

* Big with rendering content.html in v-for

* Collapse bug fix

* MInor category visual changes/fixes

* Description, reactivity bug fix

* merge

* Refactoring after code review

* Conflict in styles resolved
2018-10-31 02:09:40 +05:00

78 lines
2.8 KiB
YAML

sudo: true
language: c
addons:
apt:
sources:
- google-chrome
packages:
# GHC
- libgmp-dev
# Selenium
- xvfb
# Testcafe
- google-chrome-stable fluxbox
chrome: stable
cache:
directories:
- $HOME/.stack
- .stack-work
timeout: 1000
jobs:
include:
- stage: "Build dependencies"
before_script:
- mkdir -p ~/.local/bin
- export PATH=$HOME/.local/bin:$PATH
- >-
travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 |
tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
script:
- stack --no-terminal --install-ghc test --no-run-tests --dependencies-only
- stage: "Build and test the project"
before_script:
# Install Stack
- mkdir -p ~/.local/bin
- export PATH=$HOME/.local/bin:$PATH
- >-
travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 |
tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
# Install chromedriver
- wget http://chromedriver.storage.googleapis.com/2.40/chromedriver_linux64.zip
- unzip chromedriver_linux64.zip
- chmod +x chromedriver
- sudo mv -f chromedriver /usr/local/share/chromedriver
- sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver
- sudo ln -s /usr/local/share/chromedriver /usr/bin/chromedriver
# Run selenium-server
- sh -e /etc/init.d/xvfb start
- export DISPLAY=:99.0
- travis_retry wget http://selenium-release.storage.googleapis.com/3.6/selenium-server-standalone-3.6.0.jar
- java -jar selenium-server-standalone-3.6.0.jar 2> /dev/null &
- sleep 15
script:
- scripts/buildjs.sh
- stack --no-terminal test
- scripts/test-official.sh
- stage: "Install and test vue frontend"
before_script:
# Install dependencies
- cd front
- npm install
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 10
- fluxbox >/dev/null 2>&1 &
script:
# Run testcafe e2e testing
- npm run test
notifications:
slack:
secure: BgQpUYFmvXrf7HVBP/fefS/8UVwES800+fT+ufgJX8b2HMx2FvaWVsdv3ErKAryLE0B3fwmvforWugTdgLO3kq66YUgSt51SNQOBLkMVGubIoQsgvr3Ernu+Wpw1DyoMkXQH9q9O9rfCIc4IwkQCEHqu5SVRqdOd5px/CHFl/ktTI22JkT8ap/Be53qjlB2U2sWUf4GxYXq0V/gGF6fDwsUwTVKFb14RfSDrOgK5Vlce2GRf3gNr1C/j7A7EHIR/Z+rNd2hvv69cFw6TRc3s39QmP8XPe3SLZPIHTZ8vRveX1SZioMeEy747r5rHd9vylEjxWtVHhvP9fOt693+woXa8ZAl5uVRgB6S4mTWLZ+LAbqhaCmDGJYr9GrrBMoqWvJiMuBX3ZvHptsAc6O2l/fxZQU3otTE++SmHkhbyoDQkcPCjXPDUi/ZlnoLc5zfMAfApcsZZ8b9t47z12H0O4uDZd2YiNPiQJ1iUA6R879LH3pcxPB3RaoWsfXzv/klkKrU/V2K4SXD9j4/bmAFArlig+dar+Dm44L/a3/G7vbU1lQIa1bG0EqB36qgUS3UCkuy2ppti/JTHpkYx7HVF2BipoCjOVvfBl9G8RkvcQIhyuCfOGm7WL1TjrKVMccIEGJKhm7OO6wOZYCBfAI5zILxi8XEJAIvBm9NywhQlwxI=