Generate PLTs for your Elixir project, so you can run Dialyzer on Travis without slowing your builds.
Unless you have specific requirements, you should use these prebuilt PLTs over here: https://github.com/danielberkompas/travis_elixir_plts
By default, the PLTs are generated by dialyxir, and are compiled with the following apps:
- erts
- kernel
- stdlib
- crypto
- public_key
- elixir
The apps to be compiled can be customized in mix.exs
, following dialyxir's
instructions.
You must have an Amazon S3 account with a valid bucket name. Make sure that the bucket was created in the "US Standard" region, or you'll encounter errors.
- Fork this repository.
- Set the following ENV vars for your fork on Travis:
ARTIFACTS_KEY=<AWS S3 Access Key>
ARTIFACTS_SECRET=<AWS S3 Access Secret>
ARTIFACTS_BUCKET=<AWS S3 Bucket Name>
- Enable builds for your fork on Travis.
- Watch your PLTs flow into a
travis_elixir_plts
folder in your bucket.
You can build for different combinations of Elixir and OTP by editing the
.travis.yml
file.