Commit 86c4016c authored by Alessandro Elias's avatar Alessandro Elias
Browse files

Merge branch 'issue/463' into 'develop'

SCRUM#463: Add more testing stages on CI

See merge request !35
parents 2ed4d028 aac6cc39
Pipeline #16917 passed with stages
in 11 minutes and 26 seconds
...@@ -49,24 +49,14 @@ test: ...@@ -49,24 +49,14 @@ test:
- ubuntu - ubuntu
- regular - regular
script: script:
# TODO: find a way to get the dependencies automatically
- apt-get update && apt-get install -y wget - apt-get update && apt-get install -y wget
- echo "deb http://repo.c3sl.ufpr.br/le6/ unstable main" > /etc/apt/sources.list.d/le6.list - echo "deb http://repo.c3sl.ufpr.br/le6/ unstable main" > /etc/apt/sources.list.d/le6.list
- wget -O- http://repo.c3sl.ufpr.br/le6/le.c3sl.ufpr.br.key | apt-key add - - wget -O- http://repo.c3sl.ufpr.br/le6/le.c3sl.ufpr.br.key | apt-key add -
- echo "Installation test:" - echo "Installation test:"
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install $(pwd)/build/*.deb language-pack-gnome-pt language-pack-pt-base - apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install $(pwd)/build/*.deb language-pack-gnome-pt language-pack-pt-base
- echo "Removal test:" - echo "Removal test:"
- pkg_name=$(dpkg -I $(pwd)/build/*.deb | grep Package | head -1 | cut -d ':' -f2) - pkg_name=$(head -n 1 package/debian/changelog | cut -d' ' -f1)
- DEBIAN_FRONTEND=noninteractive apt -y remove $pkg_name - DEBIAN_FRONTEND=noninteractive apt -y remove $pkg_name
- echo "Getting latest stable package from repo..."
- DEBIAN_FRONTEND=noninteractive apt-get -y install wget
- wget http://repo.c3sl.ufpr.br/le6/dists/stable/main/binary-amd64/Packages
- wget http://repo.c3sl.ufpr.br/le6/$(tail -n +$(grep -n "Package:${pkg_name}" Packages | cut -d ":" -f1) Packages | grep "Filename" | head -1 |cut -d " " -f2)
- echo "Update test:"
- DEBIAN_FRONTEND=noninteractive apt-get -y install $(pwd)/*.deb
- DEBIAN_FRONTEND=noninteractive apt-get -y install $(pwd)/build/*.deb
- echo "Downgrade test:"
- DEBIAN_FRONTEND=noninteractive apt-get -y --allow-downgrades install $(pwd)/*.deb
dependencies: dependencies:
- build - build
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment